forked from pyrite-dev/milsko
1.2a
This commit is contained in:
parent
582582379b
commit
d0a4d1f1af
3 changed files with 20 additions and 7 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue