Turned WINFONTS macro into the ja2.ini property (USE_WINFONTS) (by scodec)

- Set USE_WINFONTS = 1, if you play Chinese version of 1.13, otherwise 0 (Default)
- This is the first step in a process making only ONE executable file for ALL the different languages

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6488 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2013-10-13 19:02:27 +00:00
parent 90dabd20ad
commit c3eb3a5434
9 changed files with 272 additions and 268 deletions
+8 -9
View File
@@ -117,9 +117,8 @@ static LPDIRECTDRAWSURFACE _gpBackBuffer = NULL;
extern RECT rcWindow;
extern POINT ptWindowSize;
#ifdef WINFONTS
UINT32 CurrentSurface = BACKBUFFER;
#endif
UINT32 CurrentSurface = BACKBUFFER;
//
// Globals for mouse cursor
//
@@ -2640,12 +2639,12 @@ LPDIRECTDRAWSURFACE2 GetFrameBufferObject(void)
LPDIRECTDRAWSURFACE2 GetMouseBufferObject(void)
{
Assert( gpPrimarySurface != NULL );
#ifdef WINFONTS
//It's a damn bug.
return gpMouseCursorOriginal;
#else
return gpMouseCursor;
#endif
if ( iUseWinFonts ) {
//It's a damn bug.
return gpMouseCursorOriginal;
} else {
return gpMouseCursor;
}
}