ChangeDisplayMode doesn't work

Find quick help here to get you started with Hollywood
Post Reply
User avatar
Juan Carlos
Posts: 933
Joined: Mon Sep 06, 2010 1:02 pm

ChangeDisplayMode doesn't work

Post 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?
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: ChangeDisplayMode doesn't work

Post 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)
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
Juan Carlos
Posts: 933
Joined: Mon Sep 06, 2010 1:02 pm

Re: ChangeDisplayMode doesn't work

Post 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?
Post Reply