Page 1 of 1

ChangeDisplayMode doesn't work

Posted: Tue Oct 02, 2012 6:12 pm
by Juan Carlos
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?

Re: ChangeDisplayMode doesn't work

Posted: Tue Oct 02, 2012 9:04 pm
by djrikki
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.

Code: Select all

Local Ancho= GetAttribute(#DISPLAY, 0, # ATTRHOSTWIDTH)
Local Alto= GetAttribute(#DISPLAY, 0, # ATTRHOSTHEIGHT)

ChangeDisplayMode(#DISPMODE_FULLSCREEN, Ancho, Alto)
Like so:

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)

Re: ChangeDisplayMode doesn't work

Posted: Wed Oct 03, 2012 2:05 pm
by Juan Carlos
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?