diff --git a/inc/hgl/2d/DrawGeometry.h b/inc/hgl/2d/DrawGeometry.h index 0487d22..9c70cfc 100644 --- a/inc/hgl/2d/DrawGeometry.h +++ b/inc/hgl/2d/DrawGeometry.h @@ -126,7 +126,7 @@ namespace hgl for(int y=t;y=bitmap->GetWidth()-w)return; + if(top<0||top>=bitmap->GetHeight()-h)return; + + const uint8 *sp=data; + uint8 bit; + T *tp=bitmap->GetData(left,top); + + const uint line_wrap=bitmap->GetWidth()-w; + + bit=1<<7; + + for(int row=0;row>=1; + if(bit==0) + { + ++sp; + bit=1<<7; + } + } + + tp+=line_wrap; + } + } };//template class DrawGeometry }//namespace bitmap }//namespace hgl