Small fix
This commit is contained in:
@@ -152,8 +152,8 @@ std::string TextShort(const std::string &in, int max_len) {
|
||||
namespace Draw2 {
|
||||
void Scissor(R7Vec2 pos, R7Vec2 size) {
|
||||
// TODO: Seems not correct yet
|
||||
C3D_SetScissor(GPU_SCISSOR_NORMAL, pos.y, pos.x, size.y - pos.y,
|
||||
pos.x + size.x);
|
||||
C3D_SetScissor(GPU_SCISSOR_NORMAL, GSP_SCREEN_WIDTH - pos.y - size.y, pos.x,
|
||||
GSP_SCREEN_WIDTH - pos.y, pos.x + size.x);
|
||||
}
|
||||
void ScissorReset() { C3D_SetScissor(GPU_SCISSOR_DISABLE, 0, 0, 0, 0); }
|
||||
void Rect(R7Vec2 pos, R7Vec2 size, unsigned int color, int t) {
|
||||
|
||||
Reference in New Issue
Block a user