Changeset 1207


Ignore:
Timestamp:
Apr 8, 2012, 4:55:08 PM (11 years ago)
Author:
sam
Message:

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

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/monsterz.cpp

    r1189 r1207  
    3838    Application app("Monsterz", ivec2(640, 480), 60.0f);
    3939
    40 #if defined _MSC_VER && !defined _XBOX
    41     _chdir("..\\..");
    42 #elif defined _WIN32 && !defined _XBOX
     40#if defined _WIN32 && !defined _XBOX
    4341    _chdir(".."); /* Temporary Win32 hack */
    4442#endif
  • trunk/mrpigeon/mrpigeon.cpp

    r1205 r1207  
    77#if defined HAVE_CONFIG_H
    88#   include "config.h"
     9#endif
     10
     11#if defined _WIN32
     12#   include <direct.h>
    913#endif
    1014
     
    139143{
    140144    Application app("MrPigeon", ivec2(512,384), 60.0f);
     145
     146#if defined _WIN32 && !defined _XBOX
     147    _chdir(".."); /* Temporary Win32 hack */
     148#endif
     149
    141150    new DebugFps(2, 370);
    142151    new MrPigeon();
  • trunk/src/image/codec/gdiplus-image.cpp

    r1204 r1207  
    103103        for (int x = 0; x < size.x; x++)
    104104        {
    105             uint8_t tmp = p[0];
    106             *p++ = p[1];
    107             *p++ = p[1];
    108             *p++ = p[1];
    109             *p++ = tmp;
     105            uint8_t tmp = p[2];
     106            p[2] = p[0];
     107            p[0] = tmp;
     108            p += 4;
    110109        }
    111110
  • trunk/win32/mrpigeon.vcxproj

    r1195 r1207  
    2020  </ItemGroup>
    2121  <ItemGroup>
     22    <ClInclude Include="..\mrpigeon\enemy.h" />
     23  </ItemGroup>
     24  <ItemGroup>
    2225    <ClInclude Include="..\mrpigeon\mrpigeon.h" />
    2326  </ItemGroup>
    2427  <ItemGroup>
     28    <ClInclude Include="..\mrpigeon\player.h" />
     29  </ItemGroup>
     30  <ItemGroup>
     31    <ClCompile Include="..\mrpigeon\enemy.cpp" />
     32  </ItemGroup>
     33  <ItemGroup>
    2534    <ClCompile Include="..\mrpigeon\mrpigeon.cpp" />
     35  </ItemGroup>
     36  <ItemGroup>
     37    <ClCompile Include="..\mrpigeon\player.cpp" />
    2638  </ItemGroup>
    2739  <ItemGroup>
Note: See TracChangeset for help on using the changeset viewer.