- Timestamp:
- 09/03/2017 10:37:08 AM (7 years ago)
- Branches:
- master
- Children:
- f51359c
- Parents:
- 43ea417 (diff), 4f967e8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emu/ser.c
r43ea417 r5475ecf 60 60 }; 61 61 62 static uint8_t mem[CON_H][CON_W + 1];62 static uint8_t mem[CON_H][CON_W]; 63 63 64 64 static SDL_Window *win; … … 81 81 static void scroll(void) 82 82 { 83 memmove(mem, mem + 1, (CON_H - 1) * (CON_W + 1));83 memmove(mem, mem + 1, (CON_H - 1) * CON_W); 84 84 memset(mem + (CON_H - 1), ' ', CON_W); 85 85 } … … 256 256 for (int32_t y = 0; y < CON_H; ++y) { 257 257 char line[CON_W + 1]; 258 line[CON_W] = 0; 258 259 259 260 if (SDL_LockMutex(cpu_mutex) < 0) { … … 261 262 } 262 263 263 memcpy(line, mem[y], CON_W + 1);264 memcpy(line, mem[y], CON_W); 264 265 265 266 if (SDL_UnlockMutex(cpu_mutex) < 0) { … … 515 516 mem[y][x] = ' '; 516 517 } 517 518 mem[y][CON_W] = 0;519 518 } 520 519 }
Note:
See TracChangeset
for help on using the changeset viewer.