Added current_w and current_h to SDL_VideoInfo for SDL 1.2 compatibility

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403324
This commit is contained in:
Sam Lantinga 2008-12-12 06:46:20 +00:00
parent 9719f4078b
commit 1d49195b8c
3 changed files with 6 additions and 0 deletions

View file

@ -76,6 +76,8 @@ SDL_GetVideoInfo(void)
SDL_PixelFormatEnumToMasks(mode.format, &bpp, &Rmask, &Gmask, &Bmask,
&Amask);
info.vfmt = SDL_AllocFormat(bpp, Rmask, Gmask, Bmask, Amask);
info.current_w = mode.w;
info.current_h = mode.h;
}
return &info;
}