From b790073cabdbc342aa105b4713a4e099c476a2b4 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Thu, 22 Dec 2016 22:46:06 +0100 Subject: [PATCH] [DEV] duplicate the last line to have a better image view when upscale --- egami/ImagePrivate.hpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/egami/ImagePrivate.hpp b/egami/ImagePrivate.hpp index b96eefe..a6b5eca 100644 --- a/egami/ImagePrivate.hpp +++ b/egami/ImagePrivate.hpp @@ -101,15 +101,25 @@ namespace egami { // Clean all Data outside old range: // basic element: etk::Color<> tmpBg(0,0,0,0); - for (int32_t yyy=oldSize.y(); yyy(m_data[(yyy-1)*oldSize.x()+xxx])); + } + } } - for (int32_t yyy=0; yyy(m_data[yyy*oldSize.x()+oldSize.x()-1])); + } + } } } void resize__(const ivec2& _size, const EGAMI_TYPE_COLOR& _color) {