Linux Ubuntu/Lite OS: Hide Display problem

Report any Hollywood bugs here
Post Reply
User avatar
Juan Carlos
Posts: 949
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: 949
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: 5887
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: 949
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
Post Reply