On Aug 5, 2010, at 5:00 PM, Alex Harrington wrote:

> Hi all
> 
> I'm trying to make the Xibo player run "fullscreen", but have some
> control over which screen (on a dual screen machine) or indeed which
> portions of the screen are used. For example in some signage
> applications the player needs to occupy only some of the screen - or in
> a dual screen setup there may need to be a kiosk application running on
> the other head.
> 
> I see from the libsdl documentation libsdl can make a windowed window
> with the SDL_NOFRAME flag set which causes it to have no decorations or
> title bar. (http://www.libsdl.org/docs/html/sdlsetvideomode.html)

A hack would be to add SDL_NOFRAME to the SDL_SetVideoMode call in 
SDLDisplayEngine.cpp.

To make this configurable, you just need to tunnel a parameter from python to 
the SDL_SetVideoMode call:

- Add a bool attribute to DisplayParams (m_bHasWindowFrame) in 
src/player/DisplayParams.[h|cpp]
- Add Player::setWindowFrame(bool), modeled on the code to 
Player::setResolution()
- Read this attribute in SDLDisplayEngine::init and call SDL_SetVideoMode 
accordingly
- Write a test that opens a window without a frame and add that test to 
src/test/PlayerTest.py

This is also what would make sense as an addition to libavg.

> That would be perfect as I can already control the position of the
> libavg renderer window with the SDL_VIDEO_WINDOW_POS environment
> variable. (It would be even better if I could tell libavg where on the
> screen to render the window!)

Player.setWindowPos().

Actually, that just calls setEnv("SDL_VIDEO_WINDOW_POS",...) internally.

Be aware that at least some versions of libsdl have a bug that prevents this 
from working on the mac.

Cheers,

  Uli

> 
> Is libavg able to create a window with that flag set already? If not,
> could someone point me to the right bit of code to hack at? I'm not a C
> ++ developer but if it's something really simple I might be able to make
> the changes needed myself!
> 
> Cheers
> 
> Alex
> 
> 
> This email carries a disclaimer, a copy of which may be read at 
> http://learning.longhill.org.uk/disclaimer
> 
> _______________________________________________
> libavg-users mailing list
> [email protected]
> https://mail.datenhain.de/mailman/listinfo/libavg-users
> 

--
Any technology distinguishable from magic is insufficiently advanced.

Ulrich von Zadow | +49-172-7872715
Jabber: [email protected]
Skype: uzadow




_______________________________________________
libavg-users mailing list
[email protected]
https://mail.datenhain.de/mailman/listinfo/libavg-users

Reply via email to