X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftint2;a=blobdiff_plain;f=src%2Fclock%2Fclock.c;h=ec17a9fad6659477022a0ca76412cad02b9af8e0;hp=38cfcde00a24aed84fad0479ffe90a2f2a688b2f;hb=5ba60d0bf84eeb901ac0eaeb376e00f116b75c28;hpb=87acd48b92031b378887ea8b7ea9fa54aea8fa25 diff --git a/src/clock/clock.c b/src/clock/clock.c index 38cfcde..ec17a9f 100644 --- a/src/clock/clock.c +++ b/src/clock/clock.c @@ -221,8 +221,8 @@ int resize_clock (void *obj) clock->area.width = new_size + 1; clock->time1_posy = (clock->area.height - time_height) / 2; if (time2_format) { - clock->time1_posy -= ((date_height_ink + 2) / 2); - clock->time2_posy = clock->time1_posy + time_height + 2 - (time_height - time_height_ink)/2 - (date_height - date_height_ink)/2; + clock->time1_posy -= (date_height)/2; + clock->time2_posy = clock->time1_posy + time_height; } ret = 1; } @@ -234,8 +234,8 @@ int resize_clock (void *obj) clock->area.height = new_size; clock->time1_posy = (clock->area.height - time_height) / 2; if (time2_format) { - clock->time1_posy -= ((date_height_ink + 2) / 2); - clock->time2_posy = clock->time1_posy + time_height + 2 - (time_height - time_height_ink)/2 - (date_height - date_height_ink)/2; + clock->time1_posy -= (date_height)/2; + clock->time2_posy = clock->time1_posy + time_height; } ret = 1; }