Small fix
This commit is contained in:
parent
14368abae7
commit
fae31a2b28
@ -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) {
|
||||
|
@ -598,6 +598,7 @@ bool BeginMenu(const std::string &title, R7Vec2 size, UI7MenuFlags flags) {
|
||||
RenderD7::Draw2::RFS(R7Vec2(0, 0), size,
|
||||
RenderD7::StyleColor(RD7Color_Background));
|
||||
if (titlebar) {
|
||||
RenderD7::Draw2::ScissorReset();
|
||||
RenderD7::Draw2::RFS(R7Vec2(0, 0), R7Vec2(size.x, tbh),
|
||||
RenderD7::StyleColor(RD7Color_Header));
|
||||
RenderD7::TextColorByBg(RD7Color_Header);
|
||||
|
Loading…
Reference in New Issue
Block a user