mirror of
https://codeberg.org/vyivel/dulcepan/
synced 2026-04-26 21:14:40 +03:00
Fix selection size rounding
This commit is contained in:
@@ -347,7 +347,8 @@ static void redraw(struct dp_output *output) {
|
||||
if (output == selection->output) {
|
||||
double scale = output->scale;
|
||||
double x = round(selection->x * scale), y = round(selection->y * scale);
|
||||
double width = round(selection->width * scale), height = round(selection->height * scale);
|
||||
double width = round((selection->x + selection->width) * scale) - x,
|
||||
height = round((selection->y + selection->height) * scale) - y;
|
||||
|
||||
int border_size = config->border_size;
|
||||
if (border_size != 0 && width != 0 && height != 0) {
|
||||
|
||||
Reference in New Issue
Block a user