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:
parent
bc97934371
commit
cd836cc6fa
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user