diff options
author | Javier <dev.git@javispedro.com> | 2022-04-08 03:07:53 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-04-08 03:07:53 +0200 |
commit | 0f6414cb3f8afa2012f6567e2fbfe844b8bd4b78 (patch) | |
tree | 4e96753e0af164b97a38cc5667100144501e2c2e /dostsr.h | |
parent | 98a343355c3459b892792585788069bac3bc40e7 (diff) | |
download | vbados-0f6414cb3f8afa2012f6567e2fbfe844b8bd4b78.tar.gz vbados-0f6414cb3f8afa2012f6567e2fbfe844b8bd4b78.zip |
snap mouse position to character grid on text modes
Diffstat (limited to 'dostsr.h')
-rw-r--r-- | dostsr.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -85,6 +85,9 @@ typedef struct tsrdata { * physical screen coordinates. * real coordinates = virtual coordinates * screen_scale. */ struct point screen_scale; + /** In text modes, we want to snap the cursor position to the cell grid. + * This stores the desired grid granularity. */ + struct point screen_granularity; // Detected mouse hardware /** Whether the current mouse has a wheel (and support is enabled). */ |