Mercurial > sdl-ios-xcode
comparison src/SDL_compat.c @ 2862:929e7dd10031
Added current_w and current_h to SDL_VideoInfo for SDL 1.2 compatibility
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 12 Dec 2008 06:46:20 +0000 |
parents | 99210400e8b9 |
children | 762f0663c36a |
comparison
equal
deleted
inserted
replaced
2861:25745ac3d785 | 2862:929e7dd10031 |
---|---|
74 Uint32 Rmask, Gmask, Bmask, Amask; | 74 Uint32 Rmask, Gmask, Bmask, Amask; |
75 | 75 |
76 SDL_PixelFormatEnumToMasks(mode.format, &bpp, &Rmask, &Gmask, &Bmask, | 76 SDL_PixelFormatEnumToMasks(mode.format, &bpp, &Rmask, &Gmask, &Bmask, |
77 &Amask); | 77 &Amask); |
78 info.vfmt = SDL_AllocFormat(bpp, Rmask, Gmask, Bmask, Amask); | 78 info.vfmt = SDL_AllocFormat(bpp, Rmask, Gmask, Bmask, Amask); |
79 info.current_w = mode.w; | |
80 info.current_h = mode.h; | |
79 } | 81 } |
80 return &info; | 82 return &info; |
81 } | 83 } |
82 | 84 |
83 int | 85 int |