Skip to content

Commit

Permalink
Update ParxGDI.h
Browse files Browse the repository at this point in the history
fixed ordering of Top,Left,Height,Width, --> SetRecEx()
  • Loading branch information
Kenny D. Lee committed Apr 14, 2016
1 parent 7dc229f commit 7434408
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions include/ParxGDI.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@

//24bit bytes_per_pixel(GSP_BGR8_OES) & 240 pixel's high as default in functions SetCanvasPixel & GetCanvasPixel

//Utils
void ClrParx(u8* screen, u32 colour);
u8* RefParx(ParxLCD LCD);
int MaxWidth(u8* screen);

//Parx Canvas Pixel's
void SetPixEx(u8* screen, u16 bpp, int h, int x, int y, u32 colour);
#define SetPix(screen, x, y, colour) (SetPixEx(screen, 3, 240, x, y,colour))
#define SetPix(screen, x, y, colour) (SetPixEx(screen, 3, SCREEN_Y, x, y,colour))
u32 GetPixEx(u8* screen, u16 bpp, int h, int x, int y);
#define GetPix(screen, x, y) (GetPixEx(screen, 3, 240, x, y))

void ClearParx(u8* screen, u32 colour);
#define GetPix(screen, x, y) (GetPixEx(screen, 3, SCREEN_Y, x, y))

//Parx Canvas Rectangular Region's
u32 SetRecEx(u8* screen, int Top, int Left, int Height, int Width, u8* Region, bool CleanUp, RamType RamLocal);
#define SetRecRe(screen, Top, Left, Height, Width, Region) (SetRecEx(screen, Top, Left, Height, Width, Region, 1, linear))

Expand Down

0 comments on commit 7434408

Please sign in to comment.