Designing a better framework
Well, you can always tweak the SDL source to get the exact behavior you want. Or, use a horrible hack like:
Add it before you create your surface "0,0" being "bottom,left" corner position relative to the bottom left of your screen.
(warning: just found a getenv("SDL_VIDEO_WINDOW_POS") in SDL source thanks to spotlight, might break things - I didn't test this other than to verify it changed the starting position of the main window)
Code:
setenv("SDL_VIDEO_WINDOW_POS","0,0",1);(warning: just found a getenv("SDL_VIDEO_WINDOW_POS") in SDL source thanks to spotlight, might break things - I didn't test this other than to verify it changed the starting position of the main window)
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Designing a 2D game... | Canter | 2 | 2,432 |
Feb 17, 2007 10:45 PM Last Post: AnotherJake |
|

