aboutsummaryrefslogtreecommitdiff
path: root/dostsr.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-08 03:07:53 +0200
committerJavier <dev.git@javispedro.com>2022-04-08 03:07:53 +0200
commit0f6414cb3f8afa2012f6567e2fbfe844b8bd4b78 (patch)
tree4e96753e0af164b97a38cc5667100144501e2c2e /dostsr.h
parent98a343355c3459b892792585788069bac3bc40e7 (diff)
downloadvbados-0f6414cb3f8afa2012f6567e2fbfe844b8bd4b78.tar.gz
vbados-0f6414cb3f8afa2012f6567e2fbfe844b8bd4b78.zip
snap mouse position to character grid on text modes
Diffstat (limited to 'dostsr.h')
-rw-r--r--dostsr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dostsr.h b/dostsr.h
index 50d4441..b3a5b3c 100644
--- a/dostsr.h
+++ b/dostsr.h
@@ -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). */