diff options
author | Mole Shang <[email protected]> | 2024-03-02 21:07:42 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2024-03-02 21:07:42 +0800 |
commit | b315720fcd6ad9af0f0d9c023e81ebf34b1be6a4 (patch) | |
tree | d1aa0e0235041b0f38eba0d60e55f4f3089ef614 /src/ui.c | |
parent | 96e9d5ef47ef58a4f7b4c9b86bf899ec413d331b (diff) | |
download | hinata-b315720fcd6ad9af0f0d9c023e81ebf34b1be6a4.tar.gz hinata-b315720fcd6ad9af0f0d9c023e81ebf34b1be6a4.tar.bz2 hinata-b315720fcd6ad9af0f0d9c023e81ebf34b1be6a4.zip |
Diffstat (limited to 'src/ui.c')
-rw-r--r-- | src/ui.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -19,12 +19,12 @@ static nk_size pct; static bool show_app_about; static nfdchar_t *outPath; -static struct nk_rect about_dialog_bounds = {128, 64, 768, 512}; +static struct nk_rect about_dialog_bounds = {128, -16, 768, 696}; void load_ui(struct ui_struct *ui) { static char text[USHRT_MAX], box_buffer[UINT16_MAX], status_string[UCHAR_MAX]; float logGroup_height = - nk_window_get_height(ui->ctx) - 35 - 85 - 45 - 50 - 35 - 80; + nk_window_get_height(ui->ctx) - 85 - 45 - 50 - 35 - 80; ui->logger->extend_box = (logGroup_height - 15) < ((ui->logger->box_lines + 1) * (ui->logger->font_height + 2)); @@ -81,7 +81,7 @@ void load_ui(struct ui_struct *ui) { * What's worse, it's related w/ font size. Jeez. */ about_dialog_bounds.x -= 6; - about_dialog_bounds.y -= 85; + about_dialog_bounds.y -= 45; // DEBUG_PRINT("w: %f, h: %f\n", nk_window_get_bounds(ui->ctx).x, // nk_window_get_bounds(ui->ctx).y); |