Changes in emu/vid.c [fffab34:4f967e8] in buchla-emu


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • emu/vid.c

    rfffab34 r4f967e8  
    5050#define OD0_CB 0x0800
    5151
    52 #define AT_UND 0x0100
    5352#define AT_CG 0x8000
    5453
     
    8180
    8281static SDL_Window *win;
    83 uint32_t vid_win;
    84 
    8582static SDL_Renderer *ren;
    8683static SDL_Texture *tex;
     
    126123                                int32_t fg = (at & 0x00f0) >> 4;
    127124
    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];
    138127                                int32_t mask = 0x01;
    139128
     
    236225        if (win == NULL) {
    237226                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());
    244227        }
    245228
Note: See TracChangeset for help on using the changeset viewer.