From a547866f32d85a13a6a4a433e4898b492d4246fa Mon Sep 17 00:00:00 2001 From: Sylvain Thery Date: Tue, 19 Feb 2013 18:34:07 +0100 Subject: [PATCH] problem compilation old Qt --- include/Utils/textures.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/Utils/textures.hpp b/include/Utils/textures.hpp index 9d74e6b6..180502c8 100644 --- a/include/Utils/textures.hpp +++ b/include/Utils/textures.hpp @@ -358,7 +358,7 @@ bool Image::load(const std::string& filename) TYPE* ptrOut = this->m_data_ptr; for(int i=img.height()-1; i>0; --i) { - memcpy(ptrOut, img.constScanLine(i), 3*img.width()); + memcpy(ptrOut, img.scanLine(i), 3*img.width()); ptrOut += img.width(); // not *3 because type is size of 3 } } @@ -370,7 +370,7 @@ bool Image::load(const std::string& filename) TYPE* ptrOut = this->m_data_ptr; for(int i=img.height()-1; i>0; --i) { - memcpy(ptrOut, img.constScanLine(i), img.width()); + memcpy(ptrOut, img.scanLine(i), img.width()); ptrOut += img.width(); } } @@ -382,7 +382,7 @@ bool Image::load(const std::string& filename) //copy per line for alignment for(int i=ptr->height()-1; i>0; --i) { - memcpy(ptrOut, ptr->constScanLine(i), ptr->width()*bpp); + memcpy(ptrOut, ptr->scanLine(i), ptr->width()*bpp); ptrOut += ptr->width(); } } -- GitLab