commit 3789539
Devine Lu Linvega
·
2026-03-13 17:03:46 +0000 UTC
parent addc257
Removed left-overs from the dirty rect removal
1 files changed,
+6,
-11
+6,
-11
1@@ -399,17 +399,13 @@ static void
2 screen_redraw(void)
3 {
4 if(screen_zoom == 1) {
5- const int colmar = 8 * screen_wmar2 + 8;
6- const int row_width = screen_width;
7- const int src_stride = screen_wmar2 - row_width;
8- const int dst_stride = screen_width - row_width;
9- int y, *dst_ptr = &screen_pixels[0];
10- Uint8 *src_ptr = &screen_layers[colmar];
11+ const int src_stride = screen_wmar2 - screen_width;
12+ int y, *dst_ptr = screen_pixels;
13+ Uint8 *src_ptr = &screen_layers[8 * screen_wmar2 + 8];
14 for(y = 0; y < screen_height; y++) {
15- int *dst_end = dst_ptr + row_width;
16+ int *dst_end = dst_ptr + screen_width;
17 while(dst_ptr < dst_end)
18 *dst_ptr++ = screen_palette[*src_ptr++];
19- dst_ptr += dst_stride;
20 src_ptr += src_stride;
21 }
22 } else {
23@@ -1240,7 +1236,7 @@ emu_init(void)
24 static void
25 emu_run(void)
26 {
27- int has_input, has_eof, stdin_active = 1;
28+ int has_input, stdin_active = 1;
29 char expirations[8], coninp[CONINBUFSIZE];
30 struct pollfd fds[3];
31 fds[0].fd = emu_x11, fds[0].events = POLLIN;
32@@ -1257,8 +1253,7 @@ emu_run(void)
33 screen_update();
34 }
35 has_input = stdin_active && (fds[2].revents & POLLIN);
36- has_eof = stdin_active && (fds[2].revents & POLLHUP);
37- if(has_input || has_eof) {
38+ if(has_input || (stdin_active && (fds[2].revents & POLLHUP))) {
39 int i, n = read(STDIN_FILENO, coninp, CONINBUFSIZE - 1);
40 if(n > 0) {
41 for(i = 0; i < n; i++)