瀏覽代碼

win32: the GDI+ byte swapping was wrong; fix that.

legacy
Sam Hocevar sam 12 年之前
父節點
當前提交
d855e72198
共有 2 個文件被更改,包括 16 次插入5 次删除
  1. +4
    -5
      src/image/codec/gdiplus-image.cpp
  2. +12
    -0
      win32/mrpigeon.vcxproj

+ 4
- 5
src/image/codec/gdiplus-image.cpp 查看文件

@@ -102,11 +102,10 @@ bool GdiPlusImageData::Open(char const *path)
for (int y = 0; y < size.y; y++)
for (int x = 0; x < size.x; x++)
{
uint8_t tmp = p[0];
*p++ = p[1];
*p++ = p[1];
*p++ = p[1];
*p++ = tmp;
uint8_t tmp = p[2];
p[2] = p[0];
p[0] = tmp;
p += 4;
}

return true;


+ 12
- 0
win32/mrpigeon.vcxproj 查看文件

@@ -18,12 +18,24 @@
<Platform>Xbox 360</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\mrpigeon\enemy.h" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\mrpigeon\mrpigeon.h" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\mrpigeon\player.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\mrpigeon\enemy.cpp" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\mrpigeon\mrpigeon.cpp" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\mrpigeon\player.cpp" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="lolcore.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>


Loading…
取消
儲存