| 400 | }; |
| 401 | |
| 402 | static Area GetProfilerArea(DisplayMode display_mode, const Size& display_size) |
| 403 | { |
| 404 | if (display_mode == DISPLAYMODE_MINIMIZED) |
| 405 | { |
| 406 | Position p(BORDER_SIZE, display_size.h - (BORDER_SIZE + CHARACTER_HEIGHT + CHARACTER_BORDER * 2)); |
| 407 | Size s(display_size.w - (BORDER_SIZE * 2), CHARACTER_HEIGHT + CHARACTER_BORDER * 2); |
| 408 | return Area(p, s); |
| 409 | } |
| 410 | Position p(BORDER_SIZE, BORDER_SIZE); |
| 411 | Size s(display_size.w - (BORDER_SIZE * 2), display_size.h - (BORDER_SIZE * 2)); |
| 412 | return Area(p, s); |
| 413 | } |
| 414 | |
| 415 | static Area GetHeaderArea(DisplayMode display_mode, const Area& profiler_area) |
| 416 | { |