summaryrefslogtreecommitdiff
path: root/gflib/text.c
diff options
context:
space:
mode:
authorRevo <projectrevotpp@hotmail.com>2020-09-29 10:41:35 -0400
committerhuderlem <huderlem@gmail.com>2020-10-01 17:06:33 -0500
commit22c6c034296871cb1094d53ac3fc53cd2c5dbf8e (patch)
tree4555828e25bb692749e034a43c5316dcaa805179 /gflib/text.c
parent7f1fa7274655836bd1f5481de83952e5d3fef78e (diff)
Remove unnecessary comments
Diffstat (limited to 'gflib/text.c')
-rw-r--r--gflib/text.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gflib/text.c b/gflib/text.c
index 7694941b8..a995c70a1 100644
--- a/gflib/text.c
+++ b/gflib/text.c
@@ -464,7 +464,6 @@ u8 GetLastTextColor(u8 colorType)
inline static void GLYPH_COPY(u8 *windowTiles, u32 widthOffset, u32 j, u32 i, u32 *ptr, s32 width, s32 height) //
{
- // WHYYYYYYYYY is dummyX needed aaaaaaaaaaaaaaaaaaaaa
u32 xAdd, yAdd, r5, bits, toOrr, dummyX;
u8 *dst;
@@ -476,7 +475,6 @@ inline static void GLYPH_COPY(u8 *windowTiles, u32 widthOffset, u32 j, u32 i, u3
r5 = *ptr++;
for (j = dummyX; j < xAdd; j++)
{
- // This inline assignent turns out to be needed as well.
if ((toOrr = r5 & 0xF))
{
dst = windowTiles + ((j / 8) * 32) + ((j % 8) / 2) + ((i / 8) * widthOffset) + ((i % 8) * 4);
@@ -500,7 +498,6 @@ void CopyGlyphToWindow(struct TextPrinter *textPrinter)
win = &gWindows[textPrinter->printerTemplate.windowId];
winTempl = &win->window;
- // these inline assignments are required as well to match. Compiler is super fucking sensitive and needs like SEVERAL changes.
if ((r4 = (winTempl->width * 8) - textPrinter->printerTemplate.currentX) > gUnknown_03002F90.width)
r4 = gUnknown_03002F90.width;
@@ -509,8 +506,6 @@ void CopyGlyphToWindow(struct TextPrinter *textPrinter)
currX = textPrinter->printerTemplate.currentX;
currY = textPrinter->printerTemplate.currentY;
- // i could only get this to work as a u32 due to lvalue bullshit and the macro
- // really needs to be an inline to avoid temp bullshit below. It might work as a macro too, but...
unkStruct = (u32 *)&gUnknown_03002F90.unk0;
windowTiles = win->tileData;
widthOffset = winTempl->width * 32;