Windowed Mode working at all?

Linux specific forum
User avatar
Brujah
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Nov 03, 2003 7:45 pm
Location: Germany
Contact:

Windowed Mode working at all?

Post by Brujah »

Is it possible to open a window in linux with purebasic?

This is what I try:

Code: Select all

OpenWindow(0, 0, 0, 640, 480, "Lost Labyrinth",#PB_Window_SizeGadget|#PB_Window_MaximizeGadget|#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered|#PB_Screen_SmartSynchronization)
Without opengl it does not work at all. with opengl it opens a window in the upper left corner of the screen that cannot be dragged.
What do I have to do that it just opens a window that I can drag around and not captures the mouse.

All this was working fine in pb 4.20!
This is how we did in in 4.20:

Code: Select all

OpenWindowedScreen(0, 0, 0, 640, 480, 1, 0, 0)
In the new version it does not work at all without opengl. With opengl it opens a screen in the upper left corner :(
User avatar
Brujah
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Nov 03, 2003 7:45 pm
Location: Germany
Contact:

Re: Windowed Mode working at all?

Post by Brujah »

We managed it to open a window at least.
with this combination its working without opengl:

Code: Select all

OpenWindow(0, 0, 0, 640, 480, "Lost Labyrinth", #PB_Window_SystemMenu|#PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(0), 0, 0, 640, 480, #True, 0, 0)
Mouse gets trapped in this window. Couldn't find a way yet to free the mouse.

What we need now is code to open a fullscreen window.

This is not working for example, as it displays the screen in the upper left corner only:

Code: Select all

OpenWindow(0, 0, 0, 640, 480, "Lost Labyrinth", #PB_Window_Maximize|#PB_Window_BorderLess)
OpenWindowedScreen(WindowID(0), 0, 0, 640, 480, #True, 0, 0)
Post Reply