Bug 6435 - Fix UI cursor movements
Status: NEW
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Video
Version: GIT MASTER
Hardware: All All
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2016-07-07 10:02 EDT by Eugene C.
Modified: 2016-07-07 10:02:27 EDT
0 users

See Also:


Attachments
Suggested solution (1.65 KB, patch)
2016-07-07 10:02 EDT, Eugene C.

Description Eugene C. 2016-07-07 10:02:27 EDT
Created attachment 3559 [details]
Suggested solution

If you have 1280x960 resolution, for example, each mouse delta in UI_MouseEvent( int dx, int dy ) will be actually doubled from 640x480 and cursor movements will look choppy. 
So we should use native display resolution space and then scale all moves to 640x480 virtual UI space. Later, UI will convert them back to screen coordinates in UI_AdjustFrom640()