1
0
mirror of https://codeberg.org/vyivel/dulcepan/ synced 2025-03-12 10:49:15 +02:00

Align borders with the pixel grid

This commit is contained in:
Kirill Primak 2024-06-28 20:39:50 +03:00
parent bc97934371
commit cd836cc6fa

View File

@ -346,8 +346,8 @@ static void redraw(struct dp_output *output) {
if (output == selection->output) {
double scale = output->scale;
double x = selection->x * scale, y = selection->y * scale;
double width = selection->width * scale, height = selection->height * scale;
double x = round(selection->x * scale), y = round(selection->y * scale);
double width = round(selection->width * scale), height = round(selection->height * scale);
int border_size = config->border_size;
if (border_size != 0 && width != 0 && height != 0) {