diff options
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/ui.c | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -179,7 +179,7 @@ int main(void) { /* GUI */ if (nk_begin(ui.ctx, APP_NAME, nk_rect(0, 0, win_width, win_height), - NK_WINDOW_BORDER | NK_WINDOW_MOVABLE | NK_WINDOW_TITLE)) { + NK_WINDOW_BORDER | NK_WINDOW_MOVABLE)) { load_ui(&ui); } nk_end(ui.ctx); @@ -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); |