|Anonymous | Login | Signup for a new account||2017-03-28 19:40 CEST|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002580||VCMI||GUI - Other||public||2016-10-23 15:49||2017-02-10 16:32|
|Platform||Microsoft Windows||OS||Windows 7||OS Version||Home Premium x64|
|Target Version||Fixed in Version|
|Summary||0002580: Fullscreen game window width is bigger than it should be|
|Description||When running game in fullscreen mode, mouse cursor can go far beyond right edge of the screen. When playing on 800x600 resolution, the effective resolution is 1067x600. When playing on 1024x768, resolution is around 1300x768.|
|Steps To Reproduce||Run game in fullscreen move and move mouse as far as possible to the right side. When moving mouse back to the left side, cursor will go back after moving mouse far left, instead of immediately.|
|Additional Information||I added "logGlobal->warn(std::to_string(x) + " " + std::to_string(y));" at the end of CCursorHandler::cursorMove and confirmed that resolution is bigger than desired.|
|Tags||No tags attached.|
|This is Windows specific, no such problem on Linux and macOS.|
I think problem is really related to fact that we don't have actual modal fullscreen mode. All we have is windowed fullscreen and this means that cursor might go outside of window borders into "invisible area".
At least for me on Kubuntu 16.04 there actually extra free space in right and bottom part of screen so cursor can always be outside of visible area a bit.
There absolutely no reason to have modal fullscreen really, but then we need mouse lock so you wouldn't be able to get cursor outside. This should also fix game behaviour on Windows.
I think we should allow modal fullscreen as option to choose for player. It fixes the problem completely. Opposite to SXX, I think there is no reason NOT to have modal fullscreen, while many modern games offer it.
Tested implementation: https://github.com/dydzio0614/vcmi/commit/f7dbd207ebe82d36c04f29188399c06c92daf891 [^]
|2016-10-23 15:49||Dydzio||New Issue|
|2016-10-23 15:52||Dydzio||Steps to Reproduce Updated||View Revisions|
|2016-10-23 18:22||vmarkovtsev||Note Added: 0006859|
|2016-10-23 23:34||SXX||Relationship added||related to 0002476|
|2016-10-23 23:37||SXX||Note Added: 0006864|
|2017-02-10 16:32||Dydzio||Note Added: 0006977|
|Copyright © 2000 - 2012 MantisBT Group|