| ... | ... |
@@ -133,12 +133,17 @@ screen_deo(Device *d, Uint8 port) |
| 133 | 133 |
{
|
| 134 | 134 |
switch(port) {
|
| 135 | 135 |
case 0x3: |
| 136 |
- case 0x5: |
|
| 137 | 136 |
if(!FIXED_SIZE) {
|
| 138 |
- Uint16 w, h; |
|
| 137 |
+ Uint16 w; |
|
| 139 | 138 |
DEVPEEK16(w, 0x2); |
| 139 |
+ screen_resize(&uxn_screen, clamp(w, 1, 1024), uxn_screen.height); |
|
| 140 |
+ } |
|
| 141 |
+ break; |
|
| 142 |
+ case 0x5: |
|
| 143 |
+ if(!FIXED_SIZE) {
|
|
| 144 |
+ Uint16 h; |
|
| 140 | 145 |
DEVPEEK16(h, 0x4); |
| 141 |
- screen_resize(&uxn_screen, clamp(w, 1, 1024), clamp(h, 1, 1024)); |
|
| 146 |
+ screen_resize(&uxn_screen, uxn_screen.width, clamp(h, 1, 1024)); |
|
| 142 | 147 |
} |
| 143 | 148 |
break; |
| 144 | 149 |
case 0xe: {
|