0

可以执行以下操作吗?

SDL_Surface* screen;
screen = SDL_SetVideoMode( SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, SDL_SWSURFACE | SDL_RESIZABLE | SDL_FULLSCREEN );
screen = SDL_SetVideoMode( SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, SDL_SWSURFACE | SDL_RESIZABLE );
screen = SDL_SetVideoMode( SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, SDL_SWSURFACE | SDL_RESIZABLE | SDL_FULLSCREEN );

我不需要在每次通话之前清理表面吗?

4

1 回答 1

1

在 Windows 上切换全屏的唯一方法是再次调用 SDL_SetVideoMode。您不必释放屏幕表面。

小心,您可能会丢失硬件表面。

于 2010-07-16T08:47:57.783 回答