summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2024-03-02 21:07:42 +0800
committerMole Shang <[email protected]>2024-03-02 21:07:42 +0800
commitb315720fcd6ad9af0f0d9c023e81ebf34b1be6a4 (patch)
treed1aa0e0235041b0f38eba0d60e55f4f3089ef614 /src/ui.c
parent96e9d5ef47ef58a4f7b4c9b86bf899ec413d331b (diff)
downloadhinata-b315720fcd6ad9af0f0d9c023e81ebf34b1be6a4.tar.gz
hinata-b315720fcd6ad9af0f0d9c023e81ebf34b1be6a4.tar.bz2
hinata-b315720fcd6ad9af0f0d9c023e81ebf34b1be6a4.zip
ui: no more titlebarHEADmaster
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui.c b/src/ui.c
index f3d006e..6479cc9 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -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);