What I do in my app is this:
Code: Select all
Define window_flags = #PB_Window_ScreenCentered | #PB_Window_MinimizeGadget
Define window_width = \misc\window_width
Define window_height = \misc\window_height
If \misc\full_screen_mode = #True
ExamineDesktops()
window_width = DesktopWidth(0)
window_height = DesktopHeight(0)
\misc\window_width = window_width
\misc\window_height = window_height
window_flags = #PB_Window_BorderLess
EndIf
OpenWindow(#WINDOW_MAIN, 0, 0, window_width, window_height, "", window_flags)
SetWindowColor(#WINDOW_MAIN, \default_colors\terminal_background)
CanvasGadget(#CANVAS_MAIN, 0, 0, window_width, window_height, #PB_Canvas_Keyboard)
SetActiveGadget(#CANVAS_MAIN)
Weird things is that both devices are in 1920*1080. Any idea?

