Changed: Use float for bitmap pos for better pixel align when scale is used

--HG--
branch : experimental-ui-scaling
feature/pipeline-tools
Nimetu 9 years ago
parent 341f72e6ac
commit 44208ba1ad

@ -192,7 +192,7 @@ namespace NLGUI
* drawBitmap : this is the interface with all the views * drawBitmap : this is the interface with all the views
* *
*/ */
void drawRotFlipBitmap (sint layerId, sint32 x, sint32 y, sint32 width, sint32 height, uint8 rot, bool flipv, void drawRotFlipBitmap (sint layerId, float x, float y, float width, float height, uint8 rot, bool flipv,
sint32 nTxId, const NLMISC::CRGBA &col = NLMISC::CRGBA(255,255,255,255)); sint32 nTxId, const NLMISC::CRGBA &col = NLMISC::CRGBA(255,255,255,255));
/* /*

@ -496,7 +496,7 @@ namespace NLGUI
/* /*
* drawBitmap * drawBitmap
*/ */
void CViewRenderer::drawRotFlipBitmap (sint layerId, sint32 x, sint32 y, sint32 width, sint32 height, void CViewRenderer::drawRotFlipBitmap (sint layerId, float x, float y, float width, float height,
uint8 rot, bool flipv, sint32 nTxId, const CRGBA &col) uint8 rot, bool flipv, sint32 nTxId, const CRGBA &col)
{ {
if (width <= 0 || height <= 0) return; if (width <= 0 || height <= 0) return;

Loading…
Cancel
Save