Difference between revisions of "Bdisp AreaClr"

From WikiPrizm
Jump to navigationJump to search
(Created page with "{{syscall | name = Bdisp_AreaClr | index = 0x02B2 | signature = void Bdisp_AreaClr( TBdispFillArea* area, unsigned char target, unsigned short color) | header = display_syscal...")
 
m
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
| index = 0x02B2
 
| index = 0x02B2
 
| signature = void Bdisp_AreaClr( TBdispFillArea* area, unsigned char target, unsigned short color)
 
| signature = void Bdisp_AreaClr( TBdispFillArea* area, unsigned char target, unsigned short color)
| header = display_syscalls.h
+
| header = fxcg/display.h
| comments = Performs a VRAM or DD operation to fill an area with a color, depending on the mode of '''area'''.
+
| synopsis = Performs a VRAM or DD operation to fill an area with a color, depending on the mode of '''area'''.
 
| parameters = * ''TBdispFillArea*'' '''area''' - area to fill and mode
 
| parameters = * ''TBdispFillArea*'' '''area''' - area to fill and mode
* ''unsigned char'' '''target''' - where to perform the operation, VRAM or DD
+
* ''unsigned char'' '''target''' - where to perform the operation, VRAM or DD. If bit target.0 is set, the function performs a VRAM operation. If bit target.1 is set, the function performs a DD operation.
 
* ''unsigned short'' '''color''' - color that will be used to fill when certain modes are used
 
* ''unsigned short'' '''color''' - color that will be used to fill when certain modes are used
  

Latest revision as of 03:50, 31 August 2014


Synopsis

Header: fxcg/display.h
Syscall index: 0x02B2
Function signature: void Bdisp_AreaClr( TBdispFillArea* area, unsigned char target, unsigned short color)

Performs a VRAM or DD operation to fill an area with a color, depending on the mode of area.

Parameters

  • TBdispFillArea* area - area to fill and mode
  • unsigned char target - where to perform the operation, VRAM or DD. If bit target.0 is set, the function performs a VRAM operation. If bit target.1 is set, the function performs a DD operation.
  • unsigned short color - color that will be used to fill when certain modes are used
struct TBdispFillArea {
    int x1;
    int y1;
    int x2;
    int y2;
    unsigned char mode;
};

  • unsigned char mode - if 0, area is filled white; if 1, area is filled with color, if 2, area is shaded with color; if 4, area will be inverted (may be a bug).