Widened screen update to try and fix XOR ghosting on Mac OS X.
This commit is contained in:
parent
f506097ac7
commit
cee67e1740
1 changed files with 8 additions and 8 deletions
|
|
@ -3336,10 +3336,10 @@ static void mainloop(void)
|
|||
rect_xor(old_x - w / 2, old_y - h / 2,
|
||||
old_x + w / 2, old_y + h / 2);
|
||||
|
||||
update_screen(old_x - w / 2 + r_canvas.x,
|
||||
old_y - h / 2 + r_canvas.y,
|
||||
old_x + w / 2 + r_canvas.x,
|
||||
old_y + h / 2 + r_canvas.y);
|
||||
update_screen(old_x - w / 2 + r_canvas.x - 1,
|
||||
old_y - h / 2 + r_canvas.y - 1,
|
||||
old_x + w / 2 + r_canvas.x + 1,
|
||||
old_y + h / 2 + r_canvas.y + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3360,10 +3360,10 @@ static void mainloop(void)
|
|||
rect_xor(new_x - w / 2, new_y - h / 2,
|
||||
new_x + w / 2, new_y + h / 2);
|
||||
|
||||
update_screen(new_x - w / 2 + r_canvas.x,
|
||||
new_y - h / 2 + r_canvas.y,
|
||||
new_x + w / 2 + r_canvas.x,
|
||||
new_y + h / 2 + r_canvas.y);
|
||||
update_screen(new_x - w / 2 + r_canvas.x - 1,
|
||||
new_y - h / 2 + r_canvas.y - 1,
|
||||
new_x + w / 2 + r_canvas.x + 1,
|
||||
new_y + h / 2 + r_canvas.y + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue