mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-07 16:50:24 +00:00
_lrotl -> rotateLeft
This commit is contained in:
parent
ddd83c0238
commit
fac8188bc5
|
@ -38,9 +38,9 @@ int32 disableEvents=0;
|
||||||
nanosleep (&ts, NULL);
|
nanosleep (&ts, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
// uint32 _lrotl(uint32 word,uint32 shift){
|
uint32 _lrotl(uint32 word,uint32 shift){
|
||||||
// return (word << shift) | (word >> (32 - shift));
|
return (word << shift) | (word >> (32 - shift));
|
||||||
// }
|
}
|
||||||
|
|
||||||
void ZeroMemory(void *ptr,int64 bytes){
|
void ZeroMemory(void *ptr,int64 bytes){
|
||||||
memset(ptr,0,bytes);
|
memset(ptr,0,bytes);
|
||||||
|
@ -8936,8 +8936,7 @@ void qb32_line(float x1f,float y1f,float x2f,float y2f,uint32 col,uint32 style){
|
||||||
|
|
||||||
style=(style&65535)+(style<<16);
|
style=(style&65535)+(style<<16);
|
||||||
lineclip_skippixels&=15;
|
lineclip_skippixels&=15;
|
||||||
//style=_lrotl(style,lineclip_skippixels);
|
style=_lrotl(style,lineclip_skippixels);
|
||||||
style=((style << lineclip_skippixels) | (style >> (32 - lineclip_skippixels)));
|
|
||||||
|
|
||||||
if (lineclip_draw){
|
if (lineclip_draw){
|
||||||
l=abs(lineclip_x1-lineclip_x2);
|
l=abs(lineclip_x1-lineclip_x2);
|
||||||
|
@ -8954,8 +8953,7 @@ void qb32_line(float x1f,float y1f,float x2f,float y2f,uint32 col,uint32 style){
|
||||||
while (l--){
|
while (l--){
|
||||||
if (y1f<0) lineclip_y1=y1f-0.5f; else lineclip_y1=y1f+0.5f;
|
if (y1f<0) lineclip_y1=y1f-0.5f; else lineclip_y1=y1f+0.5f;
|
||||||
|
|
||||||
//if ((style=_lrotl(style,1))&1){
|
if ((style=_lrotl(style,1))&1){
|
||||||
if (style=((style << 1) | (style >> 31))&1){
|
|
||||||
pset(lineclip_x1,lineclip_y1,col);
|
pset(lineclip_x1,lineclip_y1,col);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8974,8 +8972,7 @@ void qb32_line(float x1f,float y1f,float x2f,float y2f,uint32 col,uint32 style){
|
||||||
l2++;
|
l2++;
|
||||||
while (l2--){
|
while (l2--){
|
||||||
if (x1f<0) lineclip_x1=x1f-0.5f; else lineclip_x1=x1f+0.5f;
|
if (x1f<0) lineclip_x1=x1f-0.5f; else lineclip_x1=x1f+0.5f;
|
||||||
//if ((style=_lrotl(style,1))&1){
|
if ((style=_lrotl(style,1))&1){
|
||||||
if (style=((style << 1) | (style >> 31))&1){
|
|
||||||
pset(lineclip_x1,lineclip_y1,col);
|
pset(lineclip_x1,lineclip_y1,col);
|
||||||
}
|
}
|
||||||
lineclip_y1+=mi;
|
lineclip_y1+=mi;
|
||||||
|
|
Loading…
Reference in a new issue