parent
3d002e831f
commit
5e06520cb5
|
@ -387,8 +387,8 @@ void MulMatricesSSE(float m1[4][4],float m2[4][4],float r[4][4])
|
|||
{
|
||||
#ifndef _DEBUG
|
||||
int IsSSE = FALSE;
|
||||
int edx, eax;
|
||||
#if defined(__GNUC__) && !defined(NO_ASM) && !defined(NOSSE)
|
||||
int edx, eax;
|
||||
GLIDE64_TRY
|
||||
{
|
||||
#if defined(__x86_64__)
|
||||
|
|
|
@ -496,7 +496,8 @@ TxImage::readBMP(FILE* fp, int* width, int* height, uint16* format)
|
|||
uint8 *image = NULL;
|
||||
uint8 *image_row = NULL;
|
||||
uint8 *tmpimage = NULL;
|
||||
int row_bytes, pos, i, j;
|
||||
unsigned int row_bytes, pos;
|
||||
int i, j;
|
||||
/* Windows Bitmap */
|
||||
BITMAPFILEHEADER bmp_fhdr;
|
||||
BITMAPINFOHEADER bmp_ihdr;
|
||||
|
@ -560,7 +561,7 @@ TxImage::readBMP(FILE* fp, int* width, int* height, uint16* format)
|
|||
fseek(fp, pos, SEEK_SET);
|
||||
fread(image_row, row_bytes, 1, fp);
|
||||
/* expand 4bpp to 8bpp. stuff 4bit values into 8bit comps. */
|
||||
for (j = 0; j < row_bytes; j++) {
|
||||
for (j = 0; j < (int) row_bytes; j++) {
|
||||
tmpimage[j << 1] = image_row[j] & 0x0f;
|
||||
tmpimage[(j << 1) + 1] = (image_row[j] & 0xf0) >> 4;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue