summaryrefslogtreecommitdiff
path: root/atari/gemtk/utils.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-01-15 01:31:35 +0100
committerOle Loots <ole@monochrom.net>2013-01-15 01:31:35 +0100
commit4f64d85dfa2029eed0e5746ec421ef70a091c91c (patch)
tree0eefa75c871ebc4532fa5363e02fea682dd2ad3c /atari/gemtk/utils.c
parenta0227890e917681daa771a3b2f8499305fd0136e (diff)
downloadnetsurf-4f64d85dfa2029eed0e5746ec421ef70a091c91c.tar.gz
netsurf-4f64d85dfa2029eed0e5746ec421ef70a091c91c.tar.bz2
Make toolbar height configurable,
started to use extended AES Object types.
Diffstat (limited to 'atari/gemtk/utils.c')
-rw-r--r--atari/gemtk/utils.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/atari/gemtk/utils.c b/atari/gemtk/utils.c
index bd136dd99..1fb67c7d4 100644
--- a/atari/gemtk/utils.c
+++ b/atari/gemtk/utils.c
@@ -1,7 +1,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
-#include <gem.h>
+#include <mt_gem.h>
#include "gemtk.h"
/* -------------------------------------------------------------------------- */
@@ -64,14 +64,15 @@ int keybd2ascii( int keybd, int shift)
return (shift)?key->shift[keybd>>8]:key->unshift[keybd>>8];
}
+
void gemtk_clip_grect(VdiHdl vh, GRECT *rect)
{
- short pxy[4];
+ PXY pxy[2];
- pxy[0] = rect->g_x;
- pxy[1] = rect->g_y;
- pxy[2] = pxy[0] + rect->g_w-1;
- pxy[3] = pxy[1] + rect->g_h-1;
+ pxy[0].p_x = rect->g_x;
+ pxy[0].p_y = rect->g_y;
+ pxy[1].p_x = pxy[0].p_x + rect->g_w - 1;
+ pxy[1].p_y = pxy[0].p_y + rect->g_h - 1;
vs_clip_pxy(vh, pxy);
}