Skip to content
Snippets Groups Projects
Commit 8c38238c authored by deuce's avatar deuce
Browse files

Bugfix: When running in a scaled mode, take partial pixels into account

in expose events.
parent 08fb9e74
No related branches found
No related tags found
No related merge requests found
......@@ -409,11 +409,16 @@ static int x11_event(XEvent *ev)
case NoExpose:
break;
case GraphicsExpose:
send_rectangle(ev->xgraphicsexpose.x/vstat.scaling,ev->xgraphicsexpose.y/vstat.scaling
,ev->xgraphicsexpose.width/vstat.scaling,ev->xgraphicsexpose.height/vstat.scaling,TRUE);
send_rectangle(ev->xgraphicsexpose.x/vstat.scaling
,ev->xgraphicsexpose.y/vstat.scaling
,ev->xgraphicsexpose.width/vstat.scaling+(ev->xgraphicsexpose.width%vstat.scaling?1:0)
,ev->xgraphicsexpose.height/vstat.scaling,TRUE+(ev->xgraphicsexpose.height%vstat.scaling?1:0));
break;
case Expose:
send_rectangle(ev->xexpose.x/vstat.scaling,ev->xexpose.y/vstat.scaling,ev->xexpose.width/vstat.scaling,ev->xexpose.height/vstat.scaling,TRUE);
send_rectangle(ev->xexpose.x/vstat.scaling
,ev->xexpose.y/vstat.scaling
,ev->xgraphicsexpose.width/vstat.scaling+(ev->xgraphicsexpose.width%vstat.scaling?1:0)
,ev->xgraphicsexpose.height/vstat.scaling,TRUE+(ev->xgraphicsexpose.height%vstat.scaling?1:0));
break;
/* Copy/Paste events */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment