@@ -6257,14 +6257,8 @@ void Mod::drawArtAttackHitboxes(ttyd::dispdrv::CameraId cameraId)
6257
6257
6258
6258
// Draw the line from corner 1 to corner 2
6259
6259
gc::gx::GXBegin (gc::gx::GXPrimitive::GX_LINES, gc::gx::GXVtxFmt::GX_VTXFMT0, 2 );
6260
-
6261
- gc::ppc::writeGatherPipe.f32 = ScreenPointOutLineStart[0 ];
6262
- gc::ppc::writeGatherPipe.f32 = ScreenPointOutLineStart[1 ];
6263
- gc::ppc::writeGatherPipe.f32 = 0 ;
6264
-
6265
- gc::ppc::writeGatherPipe.f32 = ScreenPointOutLineEnd[0 ];
6266
- gc::ppc::writeGatherPipe.f32 = ScreenPointOutLineEnd[1 ];
6267
- gc::ppc::writeGatherPipe.f32 = 0 ;
6260
+ gc::gx::GXPosition3f32 (ScreenPointOutLineStart[0 ], ScreenPointOutLineStart[1 ], 0 .f );
6261
+ gc::gx::GXPosition3f32 (ScreenPointOutLineEnd[0 ], ScreenPointOutLineEnd[1 ], 0 .f );
6268
6262
}
6269
6263
}
6270
6264
}
@@ -6627,7 +6621,7 @@ void Mod::errorHandler(uint16_t error, gc::OSContext::OSContext *context, uint32
6627
6621
6628
6622
gc::gx::GXLoadPosMtxImm (
6629
6623
MtxFontSize,
6630
- gc::gx::GXPosNormMtx::GX_PNMTX0 );
6624
+ gc::gx::GXTexMtxType::GX_MTX2x4 );
6631
6625
6632
6626
gc::gx::GXSetCurrentMtx (gc::gx::GXPosNormMtx::GX_PNMTX0);
6633
6627
@@ -6641,41 +6635,41 @@ void Mod::errorHandler(uint16_t error, gc::OSContext::OSContext *context, uint32
6641
6635
uint16_t CellWidth = tempFontData->cellWidth ;
6642
6636
uint16_t CellHeight = tempFontData->cellHeight ;
6643
6637
6644
- int16_t ImagePosLeft = static_cast <int16_t >(ImagePosX);
6645
- int16_t ImagePosRight = static_cast <int16_t >(ImagePosLeft + CellWidth);
6646
- int16_t ImagePosTop = static_cast <int16_t >(ImagePosY);
6647
- int16_t ImagePosBottom = static_cast <int16_t >(ImagePosTop + CellHeight);
6638
+ uint16_t ImagePosLeft = static_cast <uint16_t >(ImagePosX);
6639
+ uint16_t ImagePosRight = static_cast <uint16_t >(ImagePosLeft + CellWidth);
6640
+ uint16_t ImagePosTop = static_cast <uint16_t >(ImagePosY);
6641
+ uint16_t ImagePosBottom = static_cast <uint16_t >(ImagePosTop + CellHeight);
6648
6642
6649
- int16_t TextPosLeft = static_cast <int16_t >(textPosX);
6650
- int16_t TextPosRight = static_cast <int16_t >(TextPosLeft + CellWidth);
6651
- int16_t TextPosTop = static_cast <int16_t >(textPosY);
6652
- int16_t TextPosBottom = static_cast <int16_t >(TextPosTop + CellHeight);
6643
+ uint16_t TextPosLeft = static_cast <uint16_t >(textPosX);
6644
+ uint16_t TextPosRight = static_cast <uint16_t >(TextPosLeft + CellWidth);
6645
+ uint16_t TextPosTop = static_cast <uint16_t >(textPosY);
6646
+ uint16_t TextPosBottom = static_cast <uint16_t >(TextPosTop + CellHeight);
6653
6647
6654
6648
// Draw the images and text
6655
- gc::ppc::writeGatherPipe. s16 = TextPosLeft;
6656
- gc::ppc::writeGatherPipe. s16 = TextPosTop;
6657
- gc::ppc::writeGatherPipe. s16 = 0 ;
6649
+ gc::gx::GXPosition1x16 ( TextPosLeft) ;
6650
+ gc::gx::GXPosition1x16 ( TextPosTop) ;
6651
+ gc::gx::GXPosition1x16 ( 0 ) ;
6658
6652
6659
- gc::ppc::writeGatherPipe. s16 = ImagePosLeft;
6660
- gc::ppc::writeGatherPipe. s16 = ImagePosTop;
6661
- gc::ppc::writeGatherPipe. s16 = TextPosRight;
6662
- gc::ppc::writeGatherPipe. s16 = TextPosTop;
6663
- gc::ppc::writeGatherPipe. s16 = 0 ;
6653
+ gc::gx::GXPosition1x16 ( ImagePosLeft) ;
6654
+ gc::gx::GXPosition1x16 ( ImagePosTop) ;
6655
+ gc::gx::GXPosition1x16 ( TextPosRight) ;
6656
+ gc::gx::GXPosition1x16 ( TextPosTop) ;
6657
+ gc::gx::GXPosition1x16 ( 0 ) ;
6664
6658
6665
- gc::ppc::writeGatherPipe. s16 = ImagePosRight;
6666
- gc::ppc::writeGatherPipe. s16 = ImagePosTop;
6667
- gc::ppc::writeGatherPipe. s16 = TextPosRight;
6668
- gc::ppc::writeGatherPipe. s16 = TextPosBottom;
6669
- gc::ppc::writeGatherPipe. s16 = 0 ;
6659
+ gc::gx::GXPosition1x16 ( ImagePosRight) ;
6660
+ gc::gx::GXPosition1x16 ( ImagePosTop) ;
6661
+ gc::gx::GXPosition1x16 ( TextPosRight) ;
6662
+ gc::gx::GXPosition1x16 ( TextPosBottom) ;
6663
+ gc::gx::GXPosition1x16 ( 0 ) ;
6670
6664
6671
- gc::ppc::writeGatherPipe. s16 = ImagePosRight;
6672
- gc::ppc::writeGatherPipe. s16 = ImagePosBottom;
6673
- gc::ppc::writeGatherPipe. s16 = TextPosLeft;
6674
- gc::ppc::writeGatherPipe. s16 = TextPosBottom;
6675
- gc::ppc::writeGatherPipe. s16 = 0 ;
6665
+ gc::gx::GXPosition1x16 ( ImagePosRight) ;
6666
+ gc::gx::GXPosition1x16 ( ImagePosBottom) ;
6667
+ gc::gx::GXPosition1x16 ( TextPosLeft) ;
6668
+ gc::gx::GXPosition1x16 ( TextPosBottom) ;
6669
+ gc::gx::GXPosition1x16 ( 0 ) ;
6676
6670
6677
- gc::ppc::writeGatherPipe. s16 = ImagePosLeft;
6678
- gc::ppc::writeGatherPipe. s16 = ImagePosBottom;
6671
+ gc::gx::GXPosition1x16 ( ImagePosLeft) ;
6672
+ gc::gx::GXPosition1x16 ( ImagePosBottom) ;
6679
6673
6680
6674
textPosX += ImageWidth;
6681
6675
}
0 commit comments