Changes in emu/vid.c [fffab34:4f967e8] in buchla-emu
Legend:
- Unmodified
- Added
- Removed
-
emu/vid.c
rfffab34 r4f967e8 50 50 #define OD0_CB 0x0800 51 51 52 #define AT_UND 0x010053 52 #define AT_CG 0x8000 54 53 … … 81 80 82 81 static SDL_Window *win; 83 uint32_t vid_win;84 85 82 static SDL_Renderer *ren; 86 83 static SDL_Texture *tex; … … 126 123 int32_t fg = (at & 0x00f0) >> 4; 127 124 128 int32_t bits; 129 130 if ((at & AT_UND) != 0 && line == 1) { 131 bits = 0xff; 132 } 133 else { 134 uint16_t *cg = (at & AT_CG) != 0 ? cg0 : cg1; 135 bits = cg[256 * line + ch]; 136 } 137 125 uint16_t *cg = (at & AT_CG) != 0 ? cg0 : cg1; 126 int32_t bits = cg[256 * line + ch]; 138 127 int32_t mask = 0x01; 139 128 … … 236 225 if (win == NULL) { 237 226 fail("SDL_CreateWindow() failed: %s", SDL_GetError()); 238 }239 240 vid_win = SDL_GetWindowID(win);241 242 if (vid_win == 0) {243 fail("SDL_GetWindowID() failed: %s", SDL_GetError());244 227 } 245 228
Note:
See TracChangeset
for help on using the changeset viewer.