SDL_Set/GetVideoMode() feature

Ok I know it’s my fault, but I think there should be extra test for

SDL_SetVideoMode( 0, 0, 16, 0x22 )…

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 21055)]

#0 SDL_GetVideoMode (w=0xbfffd7b0, h=0xbfffd7b4, BitsPerPixel=0xbfffd7b8, flags=34)
at SDL_video.c:434
#1 0x402e4109 in SDL_SetVideoMode (width=0, height=0, bpp=16, flags=34)
at SDL_video.c:565
#2 0x400a5db8 in Teddy::Graphics::View::View (this=0x806eea0, width=0,
height=0, options={options = 0}) at Teddy/Graphics/View.cpp:175

– Timo Suoranta – @Timo_K_Suoranta