[Plib-devel] [PATCH] fntBitmapFont::puts(): set negative coordinates correctly
Brought to you by:
sjbaker
From: Melchior F. <mf...@us...> - 2005-07-04 14:34:47
|
plib does currently not display bitmap fonts with negative coordinates. As soon as a the first character in a string lies outside the viewport (movable dialogs!), the *whole* string isn't displayed. The reason is, that glBitmap() must not get called on negative coordinates. Its manpage says: NOTES To set a valid raster position outside the viewport, first set a valid raster position inside the viewport, then call glBitmap with NULL as the bitmap parameter and with xmove and ymove set to the offsets of the new raster position. This technique is useful when panning an image around the viewport. This is done by the attached patch, and it fixes the bug. Please review and apply! m. |