mirror of
https://github.com/jjsullivan5196/wvkbd.git
synced 2025-03-12 18:32:48 +01:00
Disable cairo antialiasing
This is unoticeable without fractional scaling, but becore a real problem with it. It add transparency arround rectangles, and so cause drawing problems. Signed-off-by: Willow Barraco <contact@willowbarraco.fr> Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
parent
730e97038c
commit
7af5410235
1
drw.c
1
drw.c
@ -125,6 +125,7 @@ setup_buffer(struct drwsurf *drwsurf) {
|
||||
|
||||
drwsurf->cairo = cairo_create(s);
|
||||
cairo_scale(drwsurf->cairo, drwsurf->scale, drwsurf->scale);
|
||||
cairo_set_antialias(drwsurf->cairo, CAIRO_ANTIALIAS_NONE);
|
||||
drwsurf->layout = pango_cairo_create_layout(drwsurf->cairo);
|
||||
pango_layout_set_font_description(drwsurf->layout,
|
||||
drwsurf->ctx->font_description);
|
||||
|
Loading…
x
Reference in New Issue
Block a user