~rabbits/public-inbox

uxn: uxnemu: Make the window resizable v1 PROPOSED

Sebastian LaVine: 1
 uxnemu: Make the window resizable

 1 files changed, 1 insertions(+), 1 deletions(-)
#729349 .build.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~rabbits/public-inbox/patches/30781/mbox | git am -3
Learn more about email & git

[PATCH uxn] uxnemu: Make the window resizable Export this patch

This also makes the window tile properly in window managers like dwm.
---
 src/uxnemu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/uxnemu.c b/src/uxnemu.c
index 6829c29..8b4590c 100644
--- a/src/uxnemu.c
+++ b/src/uxnemu.c
@@ -162,7 +162,7 @@ init(void)
	as.userdata = NULL;
	if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_JOYSTICK) < 0)
		return error("sdl", SDL_GetError());
	gWindow = SDL_CreateWindow("Uxn", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, (WIDTH + PAD * 2) * zoom, (HEIGHT + PAD * 2) * zoom, SDL_WINDOW_SHOWN | SDL_WINDOW_ALLOW_HIGHDPI);
	gWindow = SDL_CreateWindow("Uxn", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, (WIDTH + PAD * 2) * zoom, (HEIGHT + PAD * 2) * zoom, SDL_WINDOW_SHOWN | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_RESIZABLE);
	if(gWindow == NULL)
		return error("sdl_window", SDL_GetError());
	gRenderer = SDL_CreateRenderer(gWindow, -1, 0);
-- 
2.35.1
uxn/patches/.build.yml: SUCCESS in 55s

[uxnemu: Make the window resizable][0] from [Sebastian LaVine][1]

[0]: https://lists.sr.ht/~rabbits/public-inbox/patches/30781
[1]: mailto:mail@smlavine.com

✓ #729349 SUCCESS uxn/patches/.build.yml https://builds.sr.ht/~rabbits/job/729349