Page 1 of 1

Linux Ubuntu/Lite OS: Hide Display problem

Posted: Thu Jan 29, 2026 4:54 pm
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.

Re: Linux Ubuntu/Lite OS: Hide Display problem

Posted: Fri Jan 30, 2026 10:28 am
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.

Re: Linux Ubuntu/Lite OS: Hide Display problem

Posted: Sat Jan 31, 2026 3:21 pm
by airsoftsoftwair
Can you provide an MCVE? Also, which Ubuntu version are you using?

Re: Linux Ubuntu/Lite OS: Hide Display problem

Posted: Sun Feb 01, 2026 4:03 pm
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