mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-29 17:23:01 +00:00
Merge branch 'main' of git.sr.ht:~rabbits/uxn
This commit is contained in:
commit
27ff275cea
1 changed files with 1 additions and 1 deletions
|
@ -464,7 +464,7 @@ run(Uxn *u, char *rom)
|
||||||
emu_window = SDL_CreateWindow(rom, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, (uxn_screen.width + PAD2) * zoom, (uxn_screen.height + PAD2) * zoom, SDL_WINDOW_SHOWN | SDL_WINDOW_ALLOW_HIGHDPI);
|
emu_window = SDL_CreateWindow(rom, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, (uxn_screen.width + PAD2) * zoom, (uxn_screen.height + PAD2) * zoom, SDL_WINDOW_SHOWN | SDL_WINDOW_ALLOW_HIGHDPI);
|
||||||
if(emu_window == NULL)
|
if(emu_window == NULL)
|
||||||
return system_error("sdl_window", SDL_GetError());
|
return system_error("sdl_window", SDL_GetError());
|
||||||
emu_renderer = SDL_CreateRenderer(emu_window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE);
|
emu_renderer = SDL_CreateRenderer(emu_window, -1, SDL_RENDERER_ACCELERATED);
|
||||||
if(emu_renderer == NULL)
|
if(emu_renderer == NULL)
|
||||||
return system_error("sdl_renderer", SDL_GetError());
|
return system_error("sdl_renderer", SDL_GetError());
|
||||||
emu_resize(uxn_screen.width, uxn_screen.height);
|
emu_resize(uxn_screen.width, uxn_screen.height);
|
||||||
|
|
Loading…
Reference in a new issue