18-01-2005, Tuesday-16:39:18
In der Tat, da stimmt etwas nicht. Da Fehlt die Berechnung des FULLSCREEN Flags. Mein Code lautete:
Das ist aus simsys_s16.c
Dein Code sieht aus wie aus simsys_s.c, das stammt noch aus der Zeit als Simutrans intern mit 8 bit und Farbpalette arbeitete?
Code:
// open the window
int dr_os_open(int w, int h)
{
Uint32 flags = SDL_HWPALETTE;
width = w;
height = h;
if(width == 640 ||
width == 800 ||
width == 1024 ||
width == 1280) {
flags |= SDL_FULLSCREEN;
}
// open the window now
screen = SDL_SetVideoMode(w, h, 16, flags);
if (screen == NULL) {
printf("Couldn't open the window: %s\n", SDL_GetError());
return FALSE;
}
Das ist aus simsys_s16.c
Dein Code sieht aus wie aus simsys_s.c, das stammt noch aus der Zeit als Simutrans intern mit 8 bit und Farbpalette arbeitete?