diff --git a/Utils/Tga2Gfx/Tga2Gfx.cpp b/Utils/Tga2Gfx/Tga2Gfx.cpp index 2f5c1d7ea..054c838fb 100644 --- a/Utils/Tga2Gfx/Tga2Gfx.cpp +++ b/Utils/Tga2Gfx/Tga2Gfx.cpp @@ -28,8 +28,8 @@ struct sTgaHdr short yorig; // 10 short width; // 12 short height; // 14 - char depth; // 15 - char imagedesc; // 16 + char depth; // 16 + char imagedesc; // 17 }; @@ -71,7 +71,7 @@ short *Dst=Buffer; */ for (int Y=0; Yheight; Y++) { - unsigned char *Src=&InSrc[(TGA->height-Y)*(TGA->width*3)]; // Flip Image + unsigned char *Src=&InSrc[(TGA->height-Y-1)*(TGA->width*3)]; // Flip Image for (int X=0; Xwidth; X++) { int B=*Src++; diff --git a/tools/Tga2Gfx.exe b/tools/Tga2Gfx.exe index 153ea26e3..35b4237a2 100644 Binary files a/tools/Tga2Gfx.exe and b/tools/Tga2Gfx.exe differ