From fa6cc3970bc61e8061a279e8573a61bd4e947f2f Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 25 Aug 2024 07:21:17 +0200 Subject: [FIX] Fix button text layout, working on setup wizard. Signed-off-by: Amlal El Mahrouss --- dev/ZKA/Modules/CoreCG/WindowRenderer.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dev/ZKA/Modules/CoreCG') diff --git a/dev/ZKA/Modules/CoreCG/WindowRenderer.hxx b/dev/ZKA/Modules/CoreCG/WindowRenderer.hxx index 16e4c14c..52031e1d 100644 --- a/dev/ZKA/Modules/CoreCG/WindowRenderer.hxx +++ b/dev/ZKA/Modules/CoreCG/WindowRenderer.hxx @@ -146,7 +146,7 @@ namespace CG { CGDrawInRegion(CGColor(0xD3, 0x74, 0x00), wnd[index]->w_w + 1, wnd[index]->w_h + 1, wnd[index]->w_y, wnd[index]->w_x); CGDrawInRegion(CGColor(0xFF, 0xFF, 0xFF), wnd[index]->w_w - 1, wnd[index]->w_h - 1, wnd[index]->w_y + 1, wnd[index]->w_x + 1); - CGDrawString(wnd[index]->w_window_name, wnd[index]->w_y + (wnd[index]->w_y / 2) - 1, wnd[index]->w_x + (wnd[index]->w_x / 2), CGColor(0x00, 0x00, 0x00)); + CGDrawString(wnd[index]->w_window_name, wnd[index]->w_y + (wnd[index]->w_y / 2) - (wnd[index]->w_h / 2), wnd[index]->w_x + (wnd[index]->w_x / 2), CGColor(0x00, 0x00, 0x00)); } CGFini(); -- cgit v1.2.3