I use these instructions:
Local Ancho= GetAttribute(#DISPLAY, 0, # ATTRHOSTWIDTH)
Local Alto= GetAttribute(#DISPLAY, 0, # ATTRHOSTHEIGHT)
ChangeDisplayMode(#DISPMODE_FULLSCREEN, Ancho, Alto)
And instead of play the video in full window its showed in a black window with the video in its original size, but if I give x sizes for example:
ChangeDisplayMode(#DISPOMODE_FULLSCREEN, 800, 600) now this instruction works fine because the video is playing to this size and if I use the normal instruction not, why?
ChangeDisplayMode doesn't work
Re: ChangeDisplayMode doesn't work
All your doing there is storing the current width and height and changing the display mode to these (same) values. I am not familiar with this particular command, but the below should work, personally I use SetDisplayAttributes() (guessed command name, away from computer) and make sure the window is fixed and cannot be moved.
Like so:
Code: Select all
Local Ancho= GetAttribute(#DISPLAY, 0, # ATTRHOSTWIDTH)
Local Alto= GetAttribute(#DISPLAY, 0, # ATTRHOSTHEIGHT)
ChangeDisplayMode(#DISPMODE_FULLSCREEN, Ancho, Alto)
Code: Select all
Global base,application
application = {}
base = {}
application.screenwidth = GetAttribute(#DISPLAY, 0, # ATTRHOSTWIDTH)
application.screenheight = GetAttribute(#DISPLAY, 0, # ATTRHOSTHEIGHT)
function base:ChangeDisplayMode( width, height )
ChangeDisplayMode(#DISPMODE_FULLSCREEN, width, height)
endfunction
base:ChangeDisplayMode(800,600)
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
http://myevolve.wordpress.com
- Juan Carlos
- Posts: 933
- Joined: Mon Sep 06, 2010 1:02 pm
Re: ChangeDisplayMode doesn't work
Thanks djrikki for you help I'll try to test your solution with the VAMP player my current project/toy's learning.
And the other problem I wrote in this forum to snapshot option under MOS?
And the other problem I wrote in this forum to snapshot option under MOS?