chg: reenable UI on --capture + enforce window res

main
Dominik Madarász 2024-04-17 12:53:53 +02:00
parent c30a73877a
commit 505ecdc4c2
22 changed files with 15 additions and 24 deletions

View File

@ -367703,14 +367703,6 @@ static bool win_debug_visible = true;
static
void ui_render() {
// skip UI rendering if capture test is enabled
static uint64_t capture_target; do_once capture_target = optioni("--capture", 0);
if( capture_target ) {
glViewport(0,0,window_width(),window_height()); //@fixme: viewport is incorrect when we bail here
nk_clear(&nk_glfw.ctx);
return;
}
// draw queued menus
ui_notify_render();
ui_menu_render();
@ -392618,6 +392610,11 @@ bool window_create_from_handle(void *handle, float scale, unsigned flags) {
int winWidth = window_canvas().w * scale;
int winHeight = window_canvas().h * scale;
if (optioni("--capture", 0)) {
winWidth = 1280;
winHeight = 720;
}
window_hints(flags);
GLFWmonitor* monitor = NULL;

View File

@ -1035,14 +1035,6 @@ static bool win_debug_visible = true;
static
void ui_render() {
// skip UI rendering if capture test is enabled
static uint64_t capture_target; do_once capture_target = optioni("--capture", 0);
if( capture_target ) {
glViewport(0,0,window_width(),window_height()); //@fixme: viewport is incorrect when we bail here
nk_clear(&nk_glfw.ctx);
return;
}
// draw queued menus
ui_notify_render();
ui_menu_render();

View File

@ -288,6 +288,11 @@ bool window_create_from_handle(void *handle, float scale, unsigned flags) {
int winWidth = window_canvas().w * scale;
int winHeight = window_canvas().h * scale;
if (optioni("--capture", 0)) {
winWidth = 1280;
winHeight = 720;
}
window_hints(flags);
GLFWmonitor* monitor = NULL;

View File

@ -2243,14 +2243,6 @@ static bool win_debug_visible = true;
static
void ui_render() {
// skip UI rendering if capture test is enabled
static uint64_t capture_target; do_once capture_target = optioni("--capture", 0);
if( capture_target ) {
glViewport(0,0,window_width(),window_height()); //@fixme: viewport is incorrect when we bail here
nk_clear(&nk_glfw.ctx);
return;
}
// draw queued menus
ui_notify_render();
ui_menu_render();
@ -27158,6 +27150,11 @@ bool window_create_from_handle(void *handle, float scale, unsigned flags) {
int winWidth = window_canvas().w * scale;
int winHeight = window_canvas().h * scale;
if (optioni("--capture", 0)) {
winWidth = 1280;
winHeight = 720;
}
window_hints(flags);
GLFWmonitor* monitor = NULL;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 327 KiB

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 550 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 546 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 419 KiB

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 455 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 642 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 800 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 621 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 963 KiB

After

Width:  |  Height:  |  Size: 790 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 831 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 64 KiB