mirror of
https://codeberg.org/vyivel/dulcepan/
synced 2025-12-24 10:36:49 +02:00
Align borders with the pixel grid
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user