Skip to content

Commit fead757

Browse files
SiegeLordExSiegeLord
authored andcommitted
Fix initial window position on Windows.
The existing code, for some reason, would offset the initial window position by the offset of the drawable part of the window within its frame. This makes little sense. This was easy to see via ex_windows where the initial jump position + display window positions were different by some value (e.g. [10, 33])
1 parent cd6b3ec commit fead757

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/win/wwindow.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,6 @@ HWND _al_win_create_window(ALLEGRO_DISPLAY *display, int width, int height, int
203203
width+lsize+rsize,
204204
height+tsize+bsize,
205205
SWP_NOZORDER | SWP_NOMOVE);
206-
SetWindowPos(my_window, 0, pos_x-lsize, pos_y-tsize,
207-
0, 0,
208-
SWP_NOZORDER | SWP_NOSIZE);
209206

210207
if (flags & ALLEGRO_FRAMELESS) {
211208
SetWindowLong(my_window, GWL_STYLE, WS_VISIBLE);

0 commit comments

Comments
 (0)