We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
WM_TOUCH dpi-aware scaling problem
WM_TOUCH dpi-aware scaling problem
Bug #3216 [Closed]
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8258
Status: | Closed | |
---|---|---|
Start date: | 2013-11-16 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | native client, windows | |
Target version: | - |
Firstly, I am a PC user with MS surface pro - windows8/x64. And I use modified dpi settings.
The option’s: Control Panel
> Appearance and Personalization> Display and select Larger - 150% radio box.I ran the HelloCpp sample project and touch feature was not working properly.
I traced to line 411 of CCEGLView.cpp: input.x = TOUCH_COORD_TO_PIXEL(ti.x);
It seems like input.x is wrongly scaled.
The same issue could be found on http://git.chromium.org/gitweb/?p=chromium/chromium.git;a=commitdiff;h=aae0617a702629b6bc0602cc9e1821b6fcb4898f