Commit: ae0fe93f0853be0a368a03f4d8682d23f09cf5c8
Parent: 467ea7ec5c0f1fcc2df186537356c276e1298f16
Author: Randy Palamar
Date: Thu, 11 Jul 2024 16:26:14 -0600
set window size to something that fits in 1080p
Diffstat:
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/beamformer.c b/beamformer.c
@@ -498,7 +498,7 @@ do_beamformer(BeamformerCtx *ctx, Arena arena)
if (desired_width > ctx->window_size.w) {
ctx->window_size.w = desired_width;
SetWindowSize(ctx->window_size.w, ctx->window_size.h);
- SetWindowMinSize(desired_width, 960);
+ SetWindowMinSize(desired_width, 720);
}
/* NOTE: check mouse wheel for adjusting dynamic range of image */
diff --git a/main.c b/main.c
@@ -142,14 +142,12 @@ main(void)
Arena temp_memory = os_new_arena(256 * MEGABYTE);
- ctx.window_size = (uv2){.w = 960, .h = 1280};
+ ctx.window_size = (uv2){.w = 960, .h = 720};
ctx.out_data_dim = (uv4){.x = 256, .y = 1024, .z = 1};
SetConfigFlags(FLAG_VSYNC_HINT|FLAG_WINDOW_RESIZABLE);
InitWindow(ctx.window_size.w, ctx.window_size.h, "OGL Beamformer");
- SetWindowMinSize(960, 960);
-
ctx.bg = (v4){.r = 0.15, .g = 0.12, .b = 0.13, .a = 1.0};
ctx.fg = (v4){.r = 0.92, .g = 0.88, .b = 0.78, .a = 1.0};
ctx.focused_colour = (v4){.r = 0.86, .g = 0.28, .b = 0.21, .a = 1.0};