On Tue, Dec 04, 2012 at 04:18:54PM +0100, Joris van der Hoeven wrote:
> On Tue, Dec 04, 2012 at 12:56:52PM +0100, Joris van der Hoeven wrote:
> > P.S.: I am also working on the support of non integer shrinking factors at
> > the moment,
> > which will allow us to tackle the fully general case, if you manage to get
> > the above
> > idea working.
>
> I managed to get this working.
There is still a small problem with the Qt version: invalidation of regions
does not always work with zooming factors > 1. Curiously, things work fine
under X11, but the same artifacts as in the Qt version appear if I replace
void
edit_interface_rep::invalidate (SI x1, SI y1, SI x2, SI y2) {
send_invalidate (this, (SI) floor (x1*magf), (SI) floor (y1*magf),
(SI) ceil (x2*magf), (SI) ceil (y2*magf));
}
by
void
edit_interface_rep::invalidate (SI x1, SI y1, SI x2, SI y2) {
send_invalidate (this, (SI) floor (x1*magf) - pixel, (SI) floor (y1*magf) -
pixel,
(SI) ceil (x2*magf) + pixel, (SI) ceil (y2*magf) +
pixel);
}
Anyone has an idea on how to remove the artefacts?
Best, --Joris
_______________________________________________
Texmacs-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/texmacs-dev