Update 1 & 2: check the bottom of the question
I have several games (built using Visual Studio 2012 C ++ under Windows 8.0) on the Windows Store. These games worked fine under Windows 8.0 and 8.1. Recently, customers complained that under Windows 10 the image is not centered, and part of it "spills" off the screen.
I reproduced the problem by installing Visual Studio 2012 Update 4 under Windows 10. The problem is that the coordinates of the windows that the OS reports are about 20% larger than they should be. For example, mouse movement events in a report window with a resolution of 1366x768 determine up to 1645.783 x 925.301. The only time the window sizes are correct (obtained by CoreWindow :: Bounds) is when the application is launched first - any resize event will ruin them (mouse events will never be correct).
The same problem occurs even if I create an empty new project based on the "Visual C ++ β Windows Store β Direct3D App" template.
The "size of text, applications, and other elements" in Windows 10 is set to 100%, so I donβt see how this can be a scaling problem.
Does anyone know why this is happening?
UPDATE 1: with further testing, this problem only occurs when the desktop resolution height less than 942 pixels (width doesn't matter). For example, on the 1366x768 desktop, a problem occurs, but on 1280x960 it is not.
UPDATE 2: It really looks like a Windows 10 error. Does anyone know how this can be reported to Microsoft?
source share