- Timestamp:
- 09/09/2017 03:16:51 PM (7 years ago)
- Branches:
- master
- Children:
- 18cbd53
- Parents:
- 1b30217
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emu/lcd.c
r1b30217 r81d7cdc 64 64 65 65 static SDL_Window *win; 66 uint32_t lcd_win; 67 66 68 static SDL_Renderer *ren; 67 69 static SDL_atomic_t frame; … … 116 118 for (int32_t y = 0; y < TXT_H; ++y) { 117 119 char line[TXT_W + 1]; 120 line[TXT_W] = 0; 118 121 119 122 if (SDL_LockMutex(cpu_mutex) < 0) { … … 132 135 } 133 136 } 134 135 line[TXT_W] = 0;136 137 137 138 SDL_Surface *lin = TTF_RenderText_Blended(fon, line, TXT_FGR); … … 207 208 } 208 209 210 lcd_win = SDL_GetWindowID(win); 211 212 if (lcd_win == 0) { 213 fail("SDL_GetWindowID() failed: %s", SDL_GetError()); 214 } 215 209 216 ren = SDL_CreateRenderer(win, -1, 0); 210 217
Note:
See TracChangeset
for help on using the changeset viewer.