Not sure what happens on your system, but probably the same issue here (linux, fbc 1.0.5 32 bit & 64 bit):
screencontrol fb.set_window_pos, 333, 222 sometimes works, sometimes is does not (without the sleep 1000).
Also the first set(
screencontrol fb.set_window_pos, 100, 400) fails, with screen ending top-left corner.
After each
screencontrol fb.set_window_pos a sleep of ~10 ms is needed here.
I guess some (internal) graphics update is needed before the window is actually moved.
This does seem to work ok here:
Code: Select all
#include "fbgfx.bi"
screenres 600,400
screencontrol fb.set_window_pos, 100, 400
screensync
screencontrol fb.set_window_pos, 333, 222
screensync
dim as integer x, y
screencontrol fb.get_window_pos, x, y
? x, y
sleep