mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Chinese Fixes (by zwwooooo)
- Fixed "new colours on ammotypes not work when use WINFONTS for Chinese version - Updated Chinese Translations git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8646 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -224,6 +224,13 @@ void SetRGBFontForeground( UINT32 uiRed, UINT32 uiGreen, UINT32 uiBlue )
|
||||
if((FontDefault < 0) || (FontDefault > MAX_FONTS))
|
||||
return;
|
||||
FontForeground16 = Get16BPPColor( FROMRGB( uiRed, uiGreen, uiBlue ) );
|
||||
if (iUseWinFonts) {
|
||||
if (GET_WINFONT() != -1)
|
||||
{
|
||||
uiRed = FROMRGB(uiRed, uiGreen, uiBlue);
|
||||
SetWinFontForeColor(GET_WINFONT(), &uiRed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void SetRGBFontBackground( UINT32 uiRed, UINT32 uiGreen, UINT32 uiBlue )
|
||||
@@ -231,6 +238,13 @@ void SetRGBFontBackground( UINT32 uiRed, UINT32 uiGreen, UINT32 uiBlue )
|
||||
if((FontDefault < 0) || (FontDefault > MAX_FONTS))
|
||||
return;
|
||||
FontBackground16 = Get16BPPColor( FROMRGB( uiRed, uiGreen, uiBlue ) );
|
||||
if (iUseWinFonts) {
|
||||
if (GET_WINFONT() != -1)
|
||||
{
|
||||
uiRed = FROMRGB(uiRed, uiGreen, uiBlue);
|
||||
SetWinFontBackColor(GET_WINFONT(), &uiRed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void SetRGBFontShadow( UINT32 uiRed, UINT32 uiGreen, UINT32 uiBlue )
|
||||
@@ -245,6 +259,13 @@ void SetRGBFontShadow( UINT32 uiRed, UINT32 uiGreen, UINT32 uiBlue )
|
||||
void SetRGBFontForeground( UINT16 usFontForeground16 )
|
||||
{
|
||||
FontForeground16 = usFontForeground16;
|
||||
if (iUseWinFonts) {
|
||||
if (GET_WINFONT() != -1)
|
||||
{
|
||||
UINT32 uiRed = GetRGBColor(usFontForeground16);
|
||||
SetWinFontForeColor(GET_WINFONT(), &uiRed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void SetRGBFontShadow( UINT16 usFontShadow16 )
|
||||
|
||||
Reference in New Issue
Block a user