[SOLVED] Fullscreen Size Problem When Connected to Another Screen with HDMI on Windows 8.1

Hi.
I’m developing a desktop game with Cocos2dx, but when I connect the screen to a bigger one with HDMI the game screen doesn’t cover the whole screen. It sometimes gets bigger than the actual size of the screen, sometimes it’s smaller that the actual size. In all cases I use GLViewImpl::createWithFullScreen().
I’m compiling with MSVC 12 x86.

EDIT: My monitor’s DPI is 140, the device that I’m connecting to via HDMI has 54 DPI. Is there any way to adjust the video mode of the screen to match the DPI so that I wouldn’t have that problem? If I manually reduce the resolution to 1280x800, the game looks fine. But I need a way to do this automatically.

EDIT 2: The problem seems to be happening when there’s gap between the two displays. My laptop’s DPI is 140, and I connect it to another display which has 95 DPI. And I get the same problem.

EDIT 3: I have my laptop and a screen connected to it. Both have the same resolution. But even when I create a border(less) window with GLViewImpl::createWithRect("ResolutionFix", Rect(0, 0, 1920, 1080)); I still get the same problem.

EDIT 3: When I create a window like this GLViewImpl::createWithRect("ResolutionFix", Rect(0, 0, 1920, 1080)); on the TV as seen below and log the window size

    cocos2d::log("VW: %f, VH: %f", director->getVisibleSize().width, director->getVisibleSize().height);
    cocos2d::log("WW: %f, WH: %f", director->getWinSize().width, director->getWinSize().height);
    cocos2d::log("WPW: %f, WPH: %f", director->getWinSizeInPixels().width, director->getWinSizeInPixels().height);

I get this output

VW: 1276.000000, VH: 693.000000
WW: 1276.000000, WH: 693.000000
WPW: 1276.000000, WPH: 693.000000

Shouldn’t I get 1920x1080 as out put?

Turns out Windows was automatically scaling the screen. You can change it in display settings.