Skip to content

Commit

Permalink
Fixed build errors thrown up under Feisty and when building with MinG…
Browse files Browse the repository at this point in the history
…W under Win32. Thanks for the heads up yagisan.
  • Loading branch information
danij committed Jun 20, 2007
1 parent ffb5996 commit 5637b7e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/include/gl_main.h
Expand Up @@ -70,7 +70,7 @@ const char* GL_ChooseVariableFont(glfontstyle_t style);
unsigned char *GL_GrabScreen(void);

extern int glScreenWidth, glScreenHeight, glScreenBits;
extern boolean glScreenFull;
extern int glScreenFull;
extern int numTexUnits;
extern boolean envModAdd;
extern int defResX, defResY, defBPP, defFullscreen;
Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/dd_dgl.c
Expand Up @@ -352,7 +352,7 @@ int DD_InitDGL(void)

// Load the DLL.
#ifdef WIN32
dglHandle = LoadLibrary(libName);
dglHandle = LoadLibrary((LPCTSTR) libName);
#endif
#ifdef UNIX
dglHandle = lt_dlopenext(libName);
Expand Down
4 changes: 2 additions & 2 deletions doomsday/engine/portable/src/dd_pinit.c
Expand Up @@ -93,8 +93,8 @@ void DD_ErrorBox(boolean error, char *format, ...)
va_end(args);
#ifdef WIN32
suspendMsgPump = true;
MessageBox(NULL, buff, "Doomsday " DOOMSDAY_VERSION_TEXT,
MB_OK | (error ? MB_ICONERROR : MB_ICONWARNING));
MessageBox(NULL, (LPCTSTR) buff, (LPCTSTR) ("Doomsday " DOOMSDAY_VERSION_TEXT),
(UINT) (MB_OK | (error ? MB_ICONERROR : MB_ICONWARNING)));
suspendMsgPump = false;
#endif
#ifdef UNIX
Expand Down
6 changes: 3 additions & 3 deletions doomsday/engine/portable/src/gl_font.c
Expand Up @@ -273,7 +273,7 @@ int FR_PrepareFont(const char *name)
struct {
char *name;
int gdires;
char *winfontname;
char winfontname[32]; // limit including terminator.
int pointsize;
} fontmapper[] = {
{"Fixed", SYSTEM_FIXED_FONT},
Expand Down Expand Up @@ -321,7 +321,7 @@ int FR_PrepareFont(const char *name)
CLIP_DEFAULT_PRECIS,
DEFAULT_QUALITY,
VARIABLE_PITCH | FF_SWISS,
fontmapper[i].winfontname);
(LPCTSTR) fontmapper[i].winfontname);

FR_PrepareGDIFont(uifont);
DeleteObject(uifont);
Expand Down Expand Up @@ -550,7 +550,7 @@ int FR_PrepareGDIFont(HFONT hfont)
ch[0] = i;
ch[1] = 0;

GetTextExtentPoint32(hdc, ch, 1, &size);
GetTextExtentPoint32(hdc, (LPCTSTR) ch, 1, &size);
fc->w = size.cx;
fc->h = size.cy;
maxh = max(maxh, fc->h);
Expand Down
2 changes: 1 addition & 1 deletion doomsday/plugins/opengl/win32/src/main.c
Expand Up @@ -278,7 +278,7 @@ int DG_Init(int width, int height, int bpp, int mode)
0, 0, 0, 0, 0,
32, // Depth bits.
0, 0,
0, // Layer type.
PFD_MAIN_PLANE, // Layer type.
0, 0, 0, 0
};
#else
Expand Down

0 comments on commit 5637b7e

Please sign in to comment.