diff options
Diffstat (limited to 'src/heapbar.cpp')
-rw-r--r-- | src/heapbar.cpp | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/src/heapbar.cpp b/src/heapbar.cpp index 386427d..40fefe5 100644 --- a/src/heapbar.cpp +++ b/src/heapbar.cpp @@ -64,22 +64,26 @@ void cppGXEnd() { float y_positions[] = { - -1, - 0.0, - 16.0 + -1.0f, + 0.0f, + 16.0f, + 32.0f, }; +#define END_AT 48.0f + u32 colours[] = { -1, 0x0000ffff, - 0xff0000ff + 0xff0000ff, + 0xffffffff, }; u32 col_5758[] = { 0x00ff00ff, 0xffff00ff, 0x00ffffff, - 0xf0ff0fff + 0xff00ffff }; void cppProcessHeap(u32 freeSize, u32 heapSize, int heapID, char *name) { @@ -113,13 +117,13 @@ void cppProcessHeap(u32 freeSize, u32 heapSize, int heapID, char *name) { GXBegin(GX_QUADS, GX_VTXFMT0, 16); for (int i = 0; i < 4; i++) { - GXPosition3f32(16*i, 32, 0.0); + GXPosition3f32(16*i, END_AT, 0.0); GXColor1u32(col_5758[i]); - GXPosition3f32(16*i+16, 32, 0.0); + GXPosition3f32(16*i+16, END_AT, 0.0); GXColor1u32(col_5758[i]); - GXPosition3f32(16*i+16, 48, 0.0); + GXPosition3f32(16*i+16, END_AT+16.0f, 0.0); GXColor1u32(col_5758[i]); - GXPosition3f32(16*i, 48, 0.0); + GXPosition3f32(16*i, END_AT+16.0f, 0.0); GXColor1u32(col_5758[i]); } @@ -129,13 +133,13 @@ void cppProcessHeap(u32 freeSize, u32 heapSize, int heapID, char *name) { if (Global5758 & (1 << i)) { GXBegin(GX_QUADS, GX_VTXFMT0, 4); - GXPosition3f32(16*i, 48, 0.0); + GXPosition3f32(16*i, END_AT+16.0f, 0.0); GXColor1u32(0xffffffff); - GXPosition3f32(16*i+16, 48, 0.0); + GXPosition3f32(16*i+16, END_AT+16.0f, 0.0); GXColor1u32(0xffffffff); - GXPosition3f32(16*i+16, 56, 0.0); + GXPosition3f32(16*i+16, END_AT+24.0f, 0.0); GXColor1u32(0xffffffff); - GXPosition3f32(16*i, 56, 0.0); + GXPosition3f32(16*i, END_AT+24.0f, 0.0); GXColor1u32(0xffffffff); GXEnd(); |