Support fractional-scale-v1

This make text less blurry. It continues to works without.

before:
https://dav.missbanal.net/00bd0fd5-e22f-4a60-87f8-ce6f400d33c9.png

after:
https://dav.missbanal.net/a3f02f1e-d6ce-4378-a141-e2093ba87eed.png
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
Willow Barraco
2023-09-07 21:31:47 +02:00
committed by Maarten van Gompel
parent 50296daa46
commit 730e97038c
7 changed files with 347 additions and 9 deletions

5
drw.h
View File

@ -9,7 +9,8 @@ struct drw {
PangoFontDescription *font_description;
};
struct drwsurf {
uint32_t width, height, scale, size;
uint32_t width, height, size;
double scale;
struct drw *ctx;
struct wl_surface *surf;
@ -22,7 +23,7 @@ struct drwsurf {
};
struct kbd;
void drwsurf_resize(struct drwsurf *ds, uint32_t w, uint32_t h, uint32_t s);
void drwsurf_resize(struct drwsurf *ds, uint32_t w, uint32_t h, double s);
void drwsurf_flip(struct drwsurf *ds);
typedef union {