From d0a4d1f1afacedb45682dbc07f0322e30d81b2f0 Mon Sep 17 00:00:00 2001 From: Nishi Date: Fri, 8 May 2026 00:35:34 +0900 Subject: [PATCH] 1.2a --- README.txt | 2 +- include/Mw/Version.h | 6 +++--- src/widget/tab.c | 19 ++++++++++++++++--- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/README.txt b/README.txt index 9278f3f..a4bd83a 100644 --- a/README.txt +++ b/README.txt @@ -1,5 +1,5 @@ -Greetings - Welcome to the Milsko GUI Toolkit (Version 1.2) +Greetings - Welcome to the Milsko GUI Toolkit (Version 1.2a) This document contains a brief summary of the contents of this source distributions and building instructions for Milsko GUI Toolkit. diff --git a/include/Mw/Version.h b/include/Mw/Version.h index 02ca715..ba550d3 100644 --- a/include/Mw/Version.h +++ b/include/Mw/Version.h @@ -16,14 +16,14 @@ #define MwMINOR 2 /*! - * @brief Patchlevel of version, calculated by `patchlevel_alphabet - 'a'` + * @brief Patchlevel of version, calculated by `patchlevel_alphabet - 'a' + 1` */ -#define MwPATCH 0 +#define MwPATCH 1 /*! * @brief Version in string */ -#define MwVERSION "1.2" +#define MwVERSION "1.2a" /*! * @brief Version in string diff --git a/src/widget/tab.c b/src/widget/tab.c index 38ce7fd..3163974 100644 --- a/src/widget/tab.c +++ b/src/widget/tab.c @@ -95,6 +95,21 @@ static void draw(MwWidget handle) { r3.height *= 2; MwDrawFrame(handle, &r3, c, 1); + MwLLClip(handle->lowlevel, NULL); + }else if(n == 1 && i == 0){ + MwRect r3 = r2; + + r3.y = tab_height(handle); + r3.width = r3.height = MwDefaultBorderWidth(handle); + + MwLLClip(handle->lowlevel, &r3); + + r3.x -= r3.width; + r3.y -= r3.height; + r3.width *= 2; + r3.height *= 3; + MwDrawFrame(handle, &r3, c, 1); + MwLLClip(handle->lowlevel, NULL); } @@ -149,8 +164,6 @@ static void draw(MwWidget handle) { static void show_frame(MwWidget handle) { MwTab t = handle->internal; - int n = MwGetInteger(handle, MwNvalue); - int i; resize(handle); @@ -226,7 +239,7 @@ static void resize(MwWidget handle) { for(i = 0; i < arrlen(t->frames); i++) { int y = MwGetInteger(handle, MwNheight); - if(i == v) tab_height(handle) + MwDefaultBorderWidth(handle); + if(i == v) y = tab_height(handle) + MwDefaultBorderWidth(handle); MwVaApply(t->frames[i], MwNx, MwDefaultBorderWidth(handle),