mojira.dev
MC-8073

Switching from windowed to fullscreen and back moves the point of view

When you press F11 for second time. You look up.

Linked issues

Attachments

Comments 8

Screenshots attached. Switched three times from windowed to fullscreen and back.

The point of view moves up and turns clockwise.

I couldn't make it happen on 1.4.7 at first try... But on second run it is now happening for me, too. Interesting.

Edit: After goofing with it enough, it is again not turning or not turning enough to notice. However, I'm already looking somewhat up...

The point of view moves up and turns clockwise.


It depends of relative position of center of window to cebter of the screen. How camera works: when you move mouse, game rotates camera depending on change of coords and then forsibly moves cursor to the center of the viewable screen. When you change from fullscreen game leave cursor in the center of the screen (as opposed to window center) for long enough to register it as mouse move.

I was thinking along those lines, too, but wanted to check the code first. Alas, when running the decompiled client in Eclipse, when it toggles back from fullscreen to windowed, it switches to menu (and with no view direction changes). This makes debugging the case a bit challenging 😛

Edit: It ends up in the game menu even when the decompiled client is started from command line (instead of from inside Eclipse); apparently there are some differences... In any case, I can not really debug it since can not reproduce the effect in that environment. But then again, I don't have to - leaving this (quite the minor issue) to Mojang 🙂

Fixed with the new launcher.

José Luis Amador

(Unassigned)

Confirmed

Minecraft 1.4.7, Snapshot 13w03a, Snapshot 13w09a, Snapshot 13w09b, Snapshot 13w09c, Minecraft 1.5, Snapshot 13w11a

Snapshot 13w18c

Retrieved