... | ... |
@@ -54,9 +54,9 @@ then |
54 | 54 |
fi |
55 | 55 |
|
56 | 56 |
echo "Assembling.." |
57 |
-./bin/uxnasm projects/examples/devices/screen.tal bin/screen.rom |
|
57 |
+./bin/uxnasm projects/examples/demos/theme.tal bin/theme.rom |
|
58 | 58 |
|
59 | 59 |
echo "Running.." |
60 |
-./bin/uxnemu bin/screen.rom |
|
60 |
+./bin/uxnemu bin/theme.rom |
|
61 | 61 |
|
62 | 62 |
echo "Done." |
... | ... |
@@ -213,8 +213,8 @@ static void |
213 | 213 |
domouse(SDL_Event *event) |
214 | 214 |
{ |
215 | 215 |
Uint8 flag = 0x00; |
216 |
- Uint16 x = clamp(event->motion.x - PAD, 0, ppu.width - 1); |
|
217 |
- Uint16 y = clamp(event->motion.y - PAD, 0, ppu.height - 1); |
|
216 |
+ Uint16 x = clamp(event->motion.x / zoom - PAD, 0, ppu.width - 1); |
|
217 |
+ Uint16 y = clamp(event->motion.y / zoom - PAD, 0, ppu.height - 1); |
|
218 | 218 |
mempoke16(devmouse->dat, 0x2, x); |
219 | 219 |
mempoke16(devmouse->dat, 0x4, y); |
220 | 220 |
switch(event->button.button) { |