From a906e607dfcf2d153328d1831e47d318bbf91e40 Mon Sep 17 00:00:00 2001 From: Benau Date: Fri, 30 Nov 2018 19:00:05 +0800 Subject: [PATCH] Fix rectangle face culling --- src/utils/profiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/profiler.cpp b/src/utils/profiler.cpp index 216bcd461..2196df273 100644 --- a/src/utils/profiler.cpp +++ b/src/utils/profiler.cpp @@ -524,9 +524,9 @@ void Profiler::drawBackground() core::rectbackground_rect( (int)(MARGIN_X * screen_size.Width), - (int)((MARGIN_Y + 0.25f) * screen_size.Height), + (int)((MARGIN_Y + 1.75f*LINE_HEIGHT) * screen_size.Height), (int)((1.0-MARGIN_X) * screen_size.Width), - (int)((MARGIN_Y + 1.75f*LINE_HEIGHT) * screen_size.Height) ); + (int)((MARGIN_Y + 0.25f) * screen_size.Height)); video::SColor color(0x88, 0xFF, 0xFF, 0xFF); GL32_draw2DRectangle(color, background_rect);