Get rid of screenBits variable

This commit is contained in:
twinaphex 2016-03-19 04:28:18 +01:00
parent 4fe951c9bc
commit dd248fa7fb
3 changed files with 1 additions and 7 deletions

View File

@ -27,11 +27,9 @@ void VW_UpdateScreen(void)
void VL_Startup (void)
{
screenBits = 16;
screen = (LR_Surface*)calloc(1, sizeof(*screen));
screen->surf = LR_SetVideoMode(screenWidth, screenHeight, screenBits, 0);
screen->surf = LR_SetVideoMode(screenWidth, screenHeight, 16, 0);
if(!screen->surf)
exit(1);

View File

@ -8,8 +8,6 @@ boolean fullscreen = false;
unsigned screenWidth = 320;
unsigned screenHeight = 200;
unsigned screenBits = -1; // use "best" color depth according to libSDL
LR_Surface *screen = NULL;
unsigned screenPitch;

View File

@ -1465,8 +1465,6 @@ void CheckParameters(int argc, char *argv[])
int defaultSampleRate = 44100;
unsigned i;
screenBits = 16;
for(i = 1; i < argc; i++)
{
char *arg = argv[i];