Linux Ubuntu/Lite OS: Hide Display problem
- Juan Carlos
- Posts: 949
- Joined: Mon Sep 06, 2010 1:02 pm
Linux Ubuntu/Lite OS: Hide Display problem
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.
- Juan Carlos
- Posts: 949
- Joined: Mon Sep 06, 2010 1:02 pm
Re: Linux Ubuntu/Lite OS: Hide Display problem
Yes, the problem with the HideDisplay() and ShowDisplay() is in Hollywood 11, because I have reinstalled Hollywood 10, and the problem does not exist.
- airsoftsoftwair
- Posts: 5887
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Linux Ubuntu/Lite OS: Hide Display problem
Can you provide an MCVE? Also, which Ubuntu version are you using?
- Juan Carlos
- Posts: 949
- Joined: Mon Sep 06, 2010 1:02 pm
Re: Linux Ubuntu/Lite OS: Hide Display problem
This is the easy example:
And the bug is on my Linux machine with:
Linux 5.14.0-oem(x86_64) Ubuntu 20.04.6 LTS
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
Linux 5.14.0-oem(x86_64) Ubuntu 20.04.6 LTS