View Issue Details

IDProjectCategoryView StatusLast Update
0008633RunnerFunctionsPublic2018-10-29 11:28
ReporteralexandervrsAssigned ToFritz 
PriorityLowSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformWindowsOSWindowsOS Version
Product VersionPre-2.1.3 
Target Version2.2.1Fixed in Version2.2.1 
Summary0008633: Functions: display_reset() does not center the window correctly
Descriptiondisplay_reset() does not center the window correctly. The window jumps a little.
It has the same issue as window_center() had here http://bugs.yoyogames.com/view.php?id=6210
TagsRunner, Windows
1.4 Found In1.2.xxx
2.x Runtime Found In
2.x Runtime Verified In2.2.1.268

Relationships

has duplicate 0011571 ClosedFritz Runner Function: display_reset() resizes window 

Activities

Dan

2013-01-14 12:35

Adminstrator   ~0015369

I can see that the default starting position isn't centred correctly and so when you first call the function it will correctly align it. Subsequent calls don't make the window jump around, though (which is what I'm reading your report as indicating), and if you add a reset into the room creation code also the window doesn't jump at all as it's always aligned.

I've added a sample to show what I mean - does that window move at all on your machine? Or did I misunderstand you?

alexandervrs

2013-01-14 15:36

Updater   ~0015393

Actually the window seems centered correctly on startup. There was a bug for this http://bugs.yoyogames.com/view.php?id=6210 but now it seems display_reset() positioning code has not been updated.

Try window_center(), there will be no position hiccup, display_reset() should follow that positioning.

Dan

2013-01-24 10:58

Adminstrator   ~0015848

Yeah, window_center() keeps the window in the same place (the default start) all the time and display_reset() makes it drop down the screen a fraction. Using rudimentary finger measurements this does seem lower than centre.

Dan

2013-09-27 08:48

Adminstrator   ~0024938

Windows and Mac.

Neil Wicker

2014-06-18 10:55

Updater   ~0029843

Still an issue in 1.3.1354, updated sample

Neil Wicker

2014-06-18 10:55

Updater  

display_reset_jump.gmz (1,203,868 bytes)

alexandervrs

2017-06-12 10:48

Updater  

WindowCentering.gmz (13,161 bytes)

alexandervrs

2017-06-12 10:50

Updater   ~0053548

Last edited: 2017-06-12 10:52

View 2 revisions

Updated sample "WindowCentering.gmz", now you can test with window_center(), window_set_position(), a DLL with the recommended window center method for apps (including source main.cpp) and display_reset().

It seems window_set_position() can't be used correctly for that purpose (does window_get_x/y() also get the non client area of the window?)

And display_reset() window centering still seems wrong.

alexandervrs

2017-06-12 10:51

Updater  

main.cpp (3,163 bytes)

alexandervrs

2017-06-14 09:00

Updater   ~0053606

Last edited: 2017-06-14 09:00

View 2 revisions

Not sure but, I believe display_reset() shouldn't center/move the window after all, it should refresh it of course, but the dev might have moved the game window somewhere on purpose (tool/desktop toy/other) and just wants to turn on/off AA or vsync. They can just manually use window_center() to center it manually if they wish afterwards.

Fritz

2018-08-23 13:54

Manager   ~0061351

display_reset now doesn't change window size or position