Incorrect elif condition usage; incore rbf defonts are not

This commit is contained in:
VincentWei
2017-10-30 18:00:05 +08:00
parent 9d502a920e
commit d9ebf14d24
6 changed files with 14 additions and 9 deletions

View File

@@ -1,6 +1,12 @@
*******************************************************************************
What's new (trunk):
10/30 BUGFIXING: Bad MG_PRINTF usage.
10/30 BUGFIXING: Incorrect elif condition usage; incore rbf defonts are not
included correctly.
* src/font/devfont.c
10/30 CLEANUP: Merge differences from rel-3-0 mannually!
10/26 CLEANUP: svn merge -r 13673:13828 ^/branches/rel-3-0

View File

@@ -479,12 +479,12 @@ extern INCORE_RBFINFO __mgif_rbf_fixedsys_8x15;
static INCORE_RBFINFO* incore_rbfonts [] = {
#ifdef _MGINCORERBF_LATIN1_VGAOEM
&__mgif_rbf_vgaoem_8x8,
#elif defined _MGINCORERBF_LATIN1_TERMINAL
#endif
#ifdef _MGINCORERBF_LATIN1_TERMINAL
&__mgif_rbf_terminal_8x12,
#elif defined _MGINCORERBF_LATIN1_FIXEDSYS
#endif
#ifdef _MGINCORERBF_LATIN1_FIXEDSYS
&__mgif_rbf_fixedsys_8x15,
#else
NULL
#endif
};

View File

@@ -102,7 +102,7 @@ static PLOGFONT gdiCreateLogFont (const char* type, const char* family,
log_font->sbc_scale = 1;
log_font->mbc_scale = 1;
_MG_PRINTF ("FONT>LogFont: requested info: type: %s, family: %s, style: %x, charset: %s, size: %d.\n",
_MG_PRINTF ("FONT>LogFont: requested info: type: %s, family: %s, style: %lx, charset: %s, size: %d.\n",
log_font->type, log_font->family, log_font->style, log_font->charset,
log_font->size);
@@ -223,7 +223,7 @@ static PLOGFONT gdiCreateLogFont (const char* type, const char* family,
log_font->style &= ~FS_FLIP_HORZVERT;
}
_MG_PRINTF ("FONT>LogFont: created info: type: %s, family: %s, style: %x, charset: %s, size: %d.\n",
_MG_PRINTF ("FONT>LogFont: created info: type: %s, family: %s, style: %lx, charset: %s, size: %d.\n",
log_font->type, log_font->family, log_font->style, log_font->charset,
log_font->size);

View File

@@ -49,7 +49,7 @@ BOOL gui_LoadIconRes(HDC hdc, const char* rdr_name, char* file)
if (LoadResource(szValue, RES_TYPE_ICON, (DWORD)hdc) != NULL)
return TRUE;
_MG_PRINTF(stderr, "SYSRES: can't get %s's value from section %s in etc.\n",
_MG_PRINTF ("SYSRES: can't get %s's value from section %s in etc.\n",
file, rdr_name);
return FALSE;

View File

@@ -12,7 +12,6 @@
#include <string.h>
#include <unistd.h>
#define _DEBUG
#include "common.h"
#ifdef _MGHAVE_PCIACCESS

View File

@@ -421,7 +421,7 @@ int DrawTextEx2 (HDC hdc, const char* pText, int nCount,
/* If output rect is too small, we shouldn't output any text.*/
if (RECTW(rcDraw) < pdc->pLogFont->size
&& RECTH(rcDraw) < pdc->pLogFont->size) {
_MG_PRINTF ("NEWGDI",
_MG_PRINTF ("NEWGDI: "
"Output rect is too small, we won't output any text. \n");
return -1;
}