fix a bunch of warnings when compiling from last commit

This commit is contained in:
UnknownShadow200 2018-12-25 00:24:38 +11:00
parent 67558dfe7e
commit 3872d9e1b1
2 changed files with 3 additions and 1 deletions

View File

@ -111,6 +111,8 @@ struct LSlider {
};
CC_NOINLINE void LSlider_Init(struct LSlider* w, int width, int height);
struct ServerInfo;
struct DrawTextArgs;
/* Returns sort order of two rows/server entries. */
typedef int (*LTableSorter)(struct ServerInfo* a, struct ServerInfo* b);

View File

@ -1636,7 +1636,7 @@ void Window_ShowDialog(const char* title, const char* msg) {
static GC win_gc;
static XImage* win_image;
void Window_InitRaw(Bitmap* bmp) {
if (!win_gc) win_gc = XCreateGC(win_display, win_handle, NULL, NULL);
if (!win_gc) win_gc = XCreateGC(win_display, win_handle, 0, NULL);
if (win_image) XFree(win_image);
Mem_Free(bmp->Scan0);