~rabbits/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH uxn] Fix blurry pixels on high-DPI displays

Details
Message ID
<20220129021300.73060-1-liam@liamcooke.com>
DKIM signature
pass
Download raw message
Patch: +1 -1
Creates the uxnemu window in high-DPI mode when supported. Now it looks
pixel perfect on a display with 2:1 pixel density.

Should have no effect on a 1:1 display, but I don't have access to one
to test this.

---
 src/uxnemu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/uxnemu.c b/src/uxnemu.c
index dde8adf..8397211 100644
--- a/src/uxnemu.c
+++ b/src/uxnemu.c
@@ -141,7 +141,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);
	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);
	if(gWindow == NULL)
		return error("sdl_window", SDL_GetError());
	gRenderer = SDL_CreateRenderer(gWindow, -1, 0);
-- 
2.35.0

[uxn/patches/.build.yml] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CHHSXNZ6SRQP.PQNBLIOY6GQ3@cirno>
In-Reply-To
<20220129021300.73060-1-liam@liamcooke.com> (view parent)
DKIM signature
missing
Download raw message
uxn/patches/.build.yml: SUCCESS in 55s

[Fix blurry pixels on high-DPI displays][0] from [Liam Cooke][1]

[0]: https://lists.sr.ht/~rabbits/public-inbox/patches/28828
[1]: liam@liamcooke.com

✓ #683248 SUCCESS uxn/patches/.build.yml https://builds.sr.ht/~rabbits/job/683248
Reply to thread Export thread (mbox)