Changeset 4ed9bfe in buchla-emu for emu/vid.c


Ignore:
Timestamp:
09/04/2017 02:28:12 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
d021bbb
Parents:
4f967e8
Message:

Support data keys, X, E, and M.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emu/vid.c

    r4f967e8 r4ed9bfe  
    8080
    8181static SDL_Window *win;
     82uint32_t vid_win;
     83
    8284static SDL_Renderer *ren;
    8385static SDL_Texture *tex;
     
    225227        if (win == NULL) {
    226228                fail("SDL_CreateWindow() failed: %s", SDL_GetError());
     229        }
     230
     231        vid_win = SDL_GetWindowID(win);
     232
     233        if (vid_win == 0) {
     234                fail("SDL_GetWindowID() failed: %s", SDL_GetError());
    227235        }
    228236
Note: See TracChangeset for help on using the changeset viewer.