mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-24 14:55:11 +00:00
Merge branch 'main' of git.sr.ht:~rabbits/uxn
This commit is contained in:
commit
9eb2f9c010
2 changed files with 6 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -11,3 +11,5 @@
|
||||||
|
|
||||||
*snarf
|
*snarf
|
||||||
*theme
|
*theme
|
||||||
|
|
||||||
|
*.rom
|
||||||
|
|
|
@ -187,6 +187,7 @@ quit(void)
|
||||||
static int
|
static int
|
||||||
init(void)
|
init(void)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
SDL_AudioSpec as;
|
SDL_AudioSpec as;
|
||||||
SDL_zero(as);
|
SDL_zero(as);
|
||||||
as.freq = SAMPLE_FREQUENCY;
|
as.freq = SAMPLE_FREQUENCY;
|
||||||
|
@ -218,6 +219,9 @@ init(void)
|
||||||
return error("sdl_texture", SDL_GetError());
|
return error("sdl_texture", SDL_GetError());
|
||||||
if(!(ppu_screen = malloc(ppu.width * ppu.height * sizeof(Uint32))))
|
if(!(ppu_screen = malloc(ppu.width * ppu.height * sizeof(Uint32))))
|
||||||
return 0;
|
return 0;
|
||||||
|
for(i = ppu.width + ppu.height + PAD * 4 - 1; i >= 0; --i)
|
||||||
|
ppu_screen[i] = 0;
|
||||||
|
SDL_UpdateTexture(gTexture, NULL, ppu_screen, sizeof(Uint32));
|
||||||
SDL_StartTextInput();
|
SDL_StartTextInput();
|
||||||
SDL_ShowCursor(SDL_DISABLE);
|
SDL_ShowCursor(SDL_DISABLE);
|
||||||
gRect.x = PAD;
|
gRect.x = PAD;
|
||||||
|
|
Loading…
Reference in a new issue