2012-05-07, 13:10
Problem:
SDL_SetVideoMode does not work if screen was rotated left/right. It matches given width/height with non rotated video modes and refuses to set correct dimensions for rotated screen.
Solution:
Phase out SDL_SetVideoMode
SDL acually opens 3 windows, one for fullscreen, one for windowed mode, and the actual drawing window. Then creates an OpenGL context which we don't use in XBMC. I am no aware of any reason why we should follow this approach. A single window should do as well, then changing window attributes when changing between fullscreen and windowed mode. Do I miss something here?
Implication:
The SDL event system only works when the video system is used. This means WinEventsSDL has to be substituted as well. I have tried WinEventsLinux already but it does not find a sing input device on Ubuntu 12.04
- What I am doing wrong?
- How would this work in windowed mode if XBMC does not have focus?
SDL_SetVideoMode does not work if screen was rotated left/right. It matches given width/height with non rotated video modes and refuses to set correct dimensions for rotated screen.
Solution:
Phase out SDL_SetVideoMode
SDL acually opens 3 windows, one for fullscreen, one for windowed mode, and the actual drawing window. Then creates an OpenGL context which we don't use in XBMC. I am no aware of any reason why we should follow this approach. A single window should do as well, then changing window attributes when changing between fullscreen and windowed mode. Do I miss something here?
Implication:
The SDL event system only works when the video system is used. This means WinEventsSDL has to be substituted as well. I have tried WinEventsLinux already but it does not find a sing input device on Ubuntu 12.04
- What I am doing wrong?
- How would this work in windowed mode if XBMC does not have focus?