Commit a547866f authored by Sylvain Thery's avatar Sylvain Thery

problem compilation old Qt

parent b72caf85
...@@ -358,7 +358,7 @@ bool Image<DIM,TYPE>::load(const std::string& filename) ...@@ -358,7 +358,7 @@ bool Image<DIM,TYPE>::load(const std::string& filename)
TYPE* ptrOut = this->m_data_ptr; TYPE* ptrOut = this->m_data_ptr;
for(int i=img.height()-1; i>0; --i) 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 ptrOut += img.width(); // not *3 because type is size of 3
} }
} }
...@@ -370,7 +370,7 @@ bool Image<DIM,TYPE>::load(const std::string& filename) ...@@ -370,7 +370,7 @@ bool Image<DIM,TYPE>::load(const std::string& filename)
TYPE* ptrOut = this->m_data_ptr; TYPE* ptrOut = this->m_data_ptr;
for(int i=img.height()-1; i>0; --i) 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(); ptrOut += img.width();
} }
} }
...@@ -382,7 +382,7 @@ bool Image<DIM,TYPE>::load(const std::string& filename) ...@@ -382,7 +382,7 @@ bool Image<DIM,TYPE>::load(const std::string& filename)
//copy per line for alignment //copy per line for alignment
for(int i=ptr->height()-1; i>0; --i) 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(); ptrOut += ptr->width();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment