fixed a bug
This commit is contained in:
parent
c19d0fffe7
commit
0fd9552b4e
@ -148,13 +148,12 @@ namespace hgl
|
|||||||
|
|
||||||
if(length<=0)return(false);
|
if(length<=0)return(false);
|
||||||
|
|
||||||
const uint line_bytes=bitmap->GetLineBytes();
|
|
||||||
T *p=bitmap->GetData(x,y);
|
T *p=bitmap->GetData(x,y);
|
||||||
|
|
||||||
for(int i=0;i<length;i++)
|
for(int i=0;i<length;i++)
|
||||||
{
|
{
|
||||||
*p=(*blend)(draw_color,*p,alpha);
|
*p=(*blend)(draw_color,*p,alpha);
|
||||||
p+=line_bytes;
|
p+=width;
|
||||||
}
|
}
|
||||||
|
|
||||||
return(true);
|
return(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user