Commit 766c11dc authored by kollo's avatar kollo

fixed missing pixel problem in BOX and horizontal lines (John 2016-06-26)

parent bd490fb1
......@@ -25,3 +25,4 @@ Release notes for Version 1.24 (Sept 2015 -- )
- improved the MAC-OSX version of X11-Basic
- improved 64bit version of X11-Basic
- fixed bug in CLEARW
- fixed missing pixel in BOX/HLINE (framebuffer versions)
......@@ -277,9 +277,9 @@ static void DrawHorizontalLine(int X, int Y, int width, unsigned short color) {
w=screen.clip_x+screen.clip_w-X;
if(screen.alpha==255) {
while(w-->0) FB_PutPixel_noclip(X++,Y,color);
while(w-->=0) FB_PutPixel_noclip(X++,Y,color);
} else {
while(w-->0) FB_PutPixel_noclip_alpha(X++,Y,color,screen.alpha);
while(w-->=0) FB_PutPixel_noclip_alpha(X++,Y,color,screen.alpha);
}
}
......@@ -309,12 +309,12 @@ static void DrawHorizontalLinePatt(int X, int Y, int width, unsigned short color
w=screen.clip_x+screen.clip_w-X;
if(screen.alpha==255) {
while(w-->0) {
while(w-->=0) {
if((pat>>(X&0xf))&1) FB_PutPixel_noclip(X,Y,color);
X++;
}
} else {
while(w-->0) {
while(w-->=0) {
if((pat>>(X&0xf))&1) FB_PutPixel_noclip_alpha(X,Y,color,screen.alpha);
X++;
}
......@@ -335,13 +335,13 @@ static void DrawHorizontalLinePattBg(int X, int Y, int width, unsigned short col
w=screen.clip_x+screen.clip_w-X;
if(screen.alpha==255) {
while(w-->0) {
while(w-->=0) {
if((pat>>(X&0xf))&1) FB_PutPixel_noclip(X,Y,color);
else FB_PutPixel_noclip(X,Y,bgcolor);
X++;
}
} else {
while(w-->0) {
while(w-->=0) {
if((pat>>(X&0xf))&1) FB_PutPixel_noclip_alpha(X,Y,color,screen.alpha);
X++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment