(Garst Reese): work-around xforms bug enabling the display of the edges

of an image.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5456 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-10-21 11:59:46 +00:00
parent 15096a4532
commit 855235a028
2 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,13 @@
2002-10-21 Angus Leeming <leeming@lyx.org>
* xformsImage.C (rotate): pass ints to flimage_rotate, fixing compiler
warning.
2002-10-21 Garst Reese <reese@isn.net>
* xformsImage.C (getWidth): work-around xforms bug enabling the display
of the edges of an image.
2002-10-21 Rob Lahaye <lahaye@snu.ac.kr> 2002-10-21 Rob Lahaye <lahaye@snu.ac.kr>
* Tooltips.C (init): pass the /formatted/ string to xforms... * Tooltips.C (init): pass the /formatted/ string to xforms...

View File

@ -155,9 +155,9 @@ unsigned int xformsImage::getWidth() const
if (!image_) if (!image_)
return 0; return 0;
// Why, oh why do we need such hacks? // Why, oh why, do we need such hacks?
// Angus 12 July 2002 // Angus 12 July 2002
return image_->w + 2; return image_->w + 4;
} }
@ -310,7 +310,9 @@ void xformsImage::rotate(Params const & params)
flimage_rotate(image_, 900, FLIMAGE_SUBPIXEL); flimage_rotate(image_, 900, FLIMAGE_SUBPIXEL);
flimage_rotate(image_, 1800, FLIMAGE_SUBPIXEL); flimage_rotate(image_, 1800, FLIMAGE_SUBPIXEL);
} else { } else {
flimage_rotate(image_, params.angle * 10, FLIMAGE_SUBPIXEL); flimage_rotate(image_,
int(params.angle * 10),
FLIMAGE_SUBPIXEL);
} }
} }