OpenWindowedScreen
Posted: Sat Oct 08, 2005 2:17 am
I am trying to get all the functions from the linux version under windows.
This works quite well, but with the following I have a problem.
I want to enable the users to switch from fullscreen to windowed mode and vica versa.
I try this with the following routine:
Procedure fullscreen()
Shared win_mode
If win_mode = 1
win_mode = 2
Result = OpenWindowedScreen(WindowID, 10, 10, 640, 480, 1, 0, 0)
Else
win_mode = 1
If OpenScreen(640,480,32,"Vollbild") = 0
EndIf
EndIf
EndProcedure
But when I call this in Windows to change to windowed I get an error message that I do not understand.
Linux just reopens the screen and everything works fine.
Closing the screen before reopening it also gives me an error.
What can I do?
This works quite well, but with the following I have a problem.
I want to enable the users to switch from fullscreen to windowed mode and vica versa.
I try this with the following routine:
Procedure fullscreen()
Shared win_mode
If win_mode = 1
win_mode = 2
Result = OpenWindowedScreen(WindowID, 10, 10, 640, 480, 1, 0, 0)
Else
win_mode = 1
If OpenScreen(640,480,32,"Vollbild") = 0
EndIf
EndIf
EndProcedure
But when I call this in Windows to change to windowed I get an error message that I do not understand.
Linux just reopens the screen and everything works fine.
Closing the screen before reopening it also gives me an error.
What can I do?