- Timestamp:
- 09/05/2017 09:49:45 AM (7 years ago)
- Branches:
- master
- Children:
- c8a92ef
- Parents:
- 5475ecf (diff), ca77925 (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/vid.c
r5475ecf rf51359c 50 50 #define OD0_CB 0x0800 51 51 52 #define AT_UND 0x0100 52 53 #define AT_CG 0x8000 53 54 … … 80 81 81 82 static SDL_Window *win; 83 uint32_t vid_win; 84 82 85 static SDL_Renderer *ren; 83 86 static SDL_Texture *tex; … … 123 126 int32_t fg = (at & 0x00f0) >> 4; 124 127 125 uint16_t *cg = (at & AT_CG) != 0 ? cg0 : cg1; 126 int32_t bits = cg[256 * line + ch]; 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 127 138 int32_t mask = 0x01; 128 139 … … 225 236 if (win == NULL) { 226 237 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()); 227 244 } 228 245
Note:
See TracChangeset
for help on using the changeset viewer.