From 44208ba1ad7358917c03cf5ee83e16aca52626d7 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Tue, 19 Jul 2016 11:12:47 +0300 Subject: [PATCH] Changed: Use float for bitmap pos for better pixel align when scale is used --HG-- branch : experimental-ui-scaling --- code/nel/include/nel/gui/view_renderer.h | 2 +- code/nel/src/gui/view_renderer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/include/nel/gui/view_renderer.h b/code/nel/include/nel/gui/view_renderer.h index 64cbfc888..99d92a7cd 100644 --- a/code/nel/include/nel/gui/view_renderer.h +++ b/code/nel/include/nel/gui/view_renderer.h @@ -192,7 +192,7 @@ namespace NLGUI * 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)); /* diff --git a/code/nel/src/gui/view_renderer.cpp b/code/nel/src/gui/view_renderer.cpp index fe86dce1f..d0bb214b2 100644 --- a/code/nel/src/gui/view_renderer.cpp +++ b/code/nel/src/gui/view_renderer.cpp @@ -496,7 +496,7 @@ namespace NLGUI /* * 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) { if (width <= 0 || height <= 0) return;