From: <ro...@sy...> - 2012-06-28 20:09:14
|
Author: Carlos Lopez <gen...@gm...> Date: Thu Jun 28 22:00:06 2012 +0200 Use unsigned char for the pointer passed to the new set_wh member function. --- ETL/ETL/_surface.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ETL/ETL/_surface.h b/ETL/ETL/_surface.h index 5638299..06c2109 100644 --- a/ETL/ETL/_surface.h +++ b/ETL/ETL/_surface.h @@ -229,7 +229,7 @@ public: } virtual void - set_wh(typename size_type::value_type w, typename size_type::value_type h, value_type* newdata, const typename size_type::value_type &pitch) + set_wh(typename size_type::value_type w, typename size_type::value_type h, unsigned char* newdata, const typename size_type::value_type &pitch) { if(data_ && deletable_) { @@ -237,7 +237,7 @@ public: } w_=w; h_=h; - zero_pos_=data_=newdata; + zero_pos_=data_=(pointer)newdata; pitch_=pitch; deletable_=false; } |