Linux Ubuntu/Lite OS: Hide Display problem

Report any Hollywood bugs here
Post Reply
User avatar
Juan Carlos
Posts: 953
Joined: Mon Sep 06, 2010 1:02 pm

Linux Ubuntu/Lite OS: Hide Display problem

Post by Juan Carlos »

When I use the function HideDisplay() the game is hidden/minimized in the bar but when I click to show the window game, appears a black screen but in this case the game is active because hovering the mouse over the buttons displays the graphics, and pressing "exit game" correctly displays the exit screen. With Hollywood 10 and other game mine this problem in this same system don't happen.
User avatar
Juan Carlos
Posts: 953
Joined: Mon Sep 06, 2010 1:02 pm

Re: Linux Ubuntu/Lite OS: Hide Display problem

Post by Juan Carlos »

Yes, the problem with the HideDisplay() and ShowDisplay() is in Hollywood 11, because I have reinstalled Hollywood 10, and the problem does not exist.
User avatar
airsoftsoftwair
Posts: 5914
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Linux Ubuntu/Lite OS: Hide Display problem

Post by airsoftsoftwair »

Can you provide an MCVE? Also, which Ubuntu version are you using?
User avatar
Juan Carlos
Posts: 953
Joined: Mon Sep 06, 2010 1:02 pm

Re: Linux Ubuntu/Lite OS: Hide Display problem

Post by Juan Carlos »

This is the easy example:

Code: Select all

Function p_Teclado(msg)
  Switch(msg.action)
    Case "OnKeyDown":
	If msg.key=" "
	   p_Oculta()
	EndIf
  EndSwitch
EndFunction

SetFont(#SANS, 36)
SetFontColor(#YELLOW)
SetFontStyle(#ANTIALIAS)
TextOut(#CENTER, #CENTER, "TEST")

Function p_Oculta()
  HideDisplay()
EndFunction

Function p_DesOculta()
  SetFont(#SANS, 36)
  SetFontColor(#YELLOW)
  SetFontStyle(#ANTIALIAS)
  TextOut(#CENTER, #CENTER+50, "BACK TO THE TEST")	
EndFunction

InstallEventHandler({OnKeyDown=p_Teclado, ShowWindow=p_DesOculta})
Repeat
  WaitEvent
Forever
And the bug is on my Linux machine with:
Linux 5.14.0-oem(x86_64) Ubuntu 20.04.6 LTS
User avatar
airsoftsoftwair
Posts: 5914
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Linux Ubuntu/Lite OS: Hide Display problem

Post by airsoftsoftwair »

Thanks for the MCVE but I'm afraid I can't reproduce the problem. I've tested your MCVE on Ubuntu 20.04 LTS on x86_64. I start your script, press the SPACE key, the display is hidden. Then I click the app's icon in the Ubuntu dock to show the window again. The window opens up and still shows the text "TEST ... BACK TO THE TEST". Seems to work fine for me on Ubuntu 20.04...
User avatar
Juan Carlos
Posts: 953
Joined: Mon Sep 06, 2010 1:02 pm

Re: Linux Ubuntu/Lite OS: Hide Display problem

Post by Juan Carlos »

airsoftsoftwair wrote: Sat Feb 07, 2026 1:36 pm Thanks for the MCVE but I'm afraid I can't reproduce the problem. I've tested your MCVE on Ubuntu 20.04 LTS on x86_64. I start your script, press the SPACE key, the display is hidden. Then I click the app's icon in the Ubuntu dock to show the window again. The window opens up and still shows the text "TEST ... BACK TO THE TEST". Seems to work fine for me on Ubuntu 20.04...
Perhaps the problem is in the LiteOS it hasn't been updated for several days, as if this Ubuntu-derived Linux were dead, and Hollywood 11 needs some new component that Hollywood 10 not needs, as also happen me with Hollywood 11 on my Windows 7.
Thank you for your answer.
Post Reply