fixed a bug

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-07-11 21:42:23 +08:00
parent c19d0fffe7
commit 0fd9552b4e

View File

@ -148,13 +148,12 @@ namespace hgl
if(length<=0)return(false);
const uint line_bytes=bitmap->GetLineBytes();
T *p=bitmap->GetData(x,y);
for(int i=0;i<length;i++)
{
*p=(*blend)(draw_color,*p,alpha);
p+=line_bytes;
p+=width;
}
return(true);