From 2aa55e5900d3c0124095f6bc67ba27eec0452ca4 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 12 Aug 2013 15:18:16 +0000 Subject: [PATCH] baselayer.c: remove baselayer_onvideomodechange, onvideomodechange. git-svn-id: https://svn.eduke32.com/eduke32@4013 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/baselayer.h | 2 -- polymer/eduke32/build/src/baselayer.c | 3 --- polymer/eduke32/build/src/sdlayer.c | 1 - polymer/eduke32/build/src/winlayer.c | 1 - polymer/eduke32/source/osdcmds.c | 1 - 5 files changed, 8 deletions(-) diff --git a/polymer/eduke32/build/include/baselayer.h b/polymer/eduke32/build/include/baselayer.h index b019ef0d1..f4c91c4da 100644 --- a/polymer/eduke32/build/include/baselayer.h +++ b/polymer/eduke32/build/include/baselayer.h @@ -35,8 +35,6 @@ extern int32_t xres, yres, bpp, fullscreen, bytesperline; extern intptr_t frameplace; extern char offscreenrendering; -extern void (*baselayer_onvideomodechange)(int32_t); - void calc_ylookup(int32_t bpl, int32_t lastyidx); #ifdef USE_OPENGL diff --git a/polymer/eduke32/build/src/baselayer.c b/polymer/eduke32/build/src/baselayer.c index 6b5869e04..449d23cde 100644 --- a/polymer/eduke32/build/src/baselayer.c +++ b/polymer/eduke32/build/src/baselayer.c @@ -206,9 +206,6 @@ struct glinfo_t glinfo = int32_t flushlogwindow = 1; -static void onvideomodechange(int32_t newmode) { UNREFERENCED_PARAMETER(newmode); } -void (*baselayer_onvideomodechange)(int32_t) = onvideomodechange; - #ifdef USE_OPENGL static int32_t osdfunc_setrendermode(const osdfuncparm_t *parm) { diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index 833280047..00f235c03 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -1622,7 +1622,6 @@ int32_t setvideomode(int32_t x, int32_t y, int32_t c, int32_t fs) setpalettefade(palfadergb.r, palfadergb.g, palfadergb.b, palfadedelta); //if (c==8) setpalette(0,256,0); - //baselayer_onvideomodechange(c>8); if (regrab) grabmouse(1); diff --git a/polymer/eduke32/build/src/winlayer.c b/polymer/eduke32/build/src/winlayer.c index 5e540ae73..c3684f59b 100644 --- a/polymer/eduke32/build/src/winlayer.c +++ b/polymer/eduke32/build/src/winlayer.c @@ -1709,7 +1709,6 @@ int32_t setvideomode(int32_t x, int32_t y, int32_t c, int32_t fs) modechange=1; videomodereset = 0; OSD_ResizeDisplay(xres,yres); - //baselayer_onvideomodechange(c>8); return 0; } diff --git a/polymer/eduke32/source/osdcmds.c b/polymer/eduke32/source/osdcmds.c index b98497e57..09dbb2cee 100644 --- a/polymer/eduke32/source/osdcmds.c +++ b/polymer/eduke32/source/osdcmds.c @@ -1608,7 +1608,6 @@ int32_t registerosdcommands(void) OSD_RegisterFunction("savestate","",osdcmd_savestate); OSD_RegisterFunction("restorestate","",osdcmd_restorestate); #endif - //baselayer_onvideomodechange = onvideomodechange; return 0; }