-void fbClass::Box(int x, int y, int width, int height, int color, int backcolor)
-{
- if (width<=2 || locked)
- return;
- int offset=y*stride+x/2;
- int first=0xF0|((color&0xF0)>>4);
- int last= 0xF0|((backcolor&0xF0)>>4);
- color=(color&0xF)*0x11;
- int halfwidth=width/2;
- for (int ay=y; ay<(y+height); ay++)
- {
- lfb[offset]=first;
- memset(lfb+offset+1, color, halfwidth-2);
- lfb[offset+halfwidth-1]=last;
- offset+=stride;
- }
-}
-
-void fbClass::NBox(int x, int y, int width, int height, int color)
-{
- if (locked)
- return;
- int offset=y*stride+x/2;
- int halfwidth=width/2;
- for (int ay=y; ay<(y+height); ay++)
- {
- memset(lfb+offset, color, halfwidth);
- offset+=stride;
- }
-}
-
-void fbClass::VLine(int x, int y, int sy, int color)
-{
- if (locked)
- return;
- int offset=y*stride+x/2;
- while (sy--)
- {
- lfb[offset]=color;
- offset+=stride;
- }
-}
-