- Timestamp:
- 09/02/2017 02:04:45 PM (7 years ago)
- Branches:
- master
- Children:
- b6f5f64
- Parents:
- c1c1ca5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emu/ser.c
rc1c1ca5 r8c8a883 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.