Changeset 34
- Timestamp:
- 12/04/06 02:27:47 (2 years ago)
- Files:
-
- trunk/luigi/adapters/sdl.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/luigi/adapters/sdl.d
r33 r34 257 257 } 258 258 259 /** Return the size of the SDL window. 260 * Params: an SDL_Surface* cast to a WindowHandle 261 */ 259 262 Size get_window_size(WindowHandle win) { 260 263 // only one window in SDL to query the size of 261 264 SDL_Surface *surf = cast(SDL_Surface*)win; 265 if (surf is null) { 266 throw new GUIException( 267 "Null is not a valid WindowHandle for SDLAdapter. \n" 268 "Overlay needs the window's SDL_Surface pointer: \n" 269 " e.g. gui = new Overlay( cast(WindowHandle)main_surface );"); 270 } 262 271 return Size(surf.w,surf.h); 263 272 }
