mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-13 04:39:36 +00:00
use a better variable name
This commit is contained in:
parent
94e4c2b91f
commit
4bbbdc39fd
1 changed files with 4 additions and 5 deletions
|
@ -97,15 +97,14 @@ void FaultDrawer_DrawRecImpl(s32 xStart, s32 yStart, s32 xEnd, s32 yEnd, u16 col
|
||||||
void FaultDrawer_DrawChar(char c) {
|
void FaultDrawer_DrawChar(char c) {
|
||||||
u16* fb;
|
u16* fb;
|
||||||
s32 x, y;
|
s32 x, y;
|
||||||
s32 test;
|
|
||||||
u32* dataPtr;
|
u32* dataPtr;
|
||||||
u32 data;
|
u32 data;
|
||||||
s32 cursorX = sFaultDrawerStruct.cursorX;
|
s32 cursorX = sFaultDrawerStruct.cursorX;
|
||||||
s32 cursorY = sFaultDrawerStruct.cursorY;
|
s32 cursorY = sFaultDrawerStruct.cursorY;
|
||||||
u32** temp = &sFaultDrawerStruct.fontData;
|
u32** fontData = &sFaultDrawerStruct.fontData;
|
||||||
|
s32 shift = c % 4;
|
||||||
|
|
||||||
test = c % 4;
|
dataPtr = &fontData[0][(((c / 8) * 16) + ((c & 4) >> 2))];
|
||||||
dataPtr = &temp[0][(((c / 8) * 16) + ((c & 4) >> 2))];
|
|
||||||
fb = sFaultDrawerStruct.fb + (sFaultDrawerStruct.w * cursorY) + cursorX;
|
fb = sFaultDrawerStruct.fb + (sFaultDrawerStruct.w * cursorY) + cursorX;
|
||||||
|
|
||||||
if ((sFaultDrawerStruct.xStart <= cursorX) &&
|
if ((sFaultDrawerStruct.xStart <= cursorX) &&
|
||||||
|
@ -113,7 +112,7 @@ void FaultDrawer_DrawChar(char c) {
|
||||||
(sFaultDrawerStruct.yStart <= cursorY) &&
|
(sFaultDrawerStruct.yStart <= cursorY) &&
|
||||||
((sFaultDrawerStruct.charH + cursorY - 1) <= sFaultDrawerStruct.yEnd)) {
|
((sFaultDrawerStruct.charH + cursorY - 1) <= sFaultDrawerStruct.yEnd)) {
|
||||||
for (y = 0; y < sFaultDrawerStruct.charH; y++) {
|
for (y = 0; y < sFaultDrawerStruct.charH; y++) {
|
||||||
u32 mask = 0x10000000 << test;
|
u32 mask = 0x10000000 << shift;
|
||||||
data = *dataPtr;
|
data = *dataPtr;
|
||||||
for (x = 0; x < sFaultDrawerStruct.charW; x++) {
|
for (x = 0; x < sFaultDrawerStruct.charW; x++) {
|
||||||
if (mask & data) {
|
if (mask & data) {
|
||||||
|
|
Loading…
Reference in a new issue