Skip to content

Commit

Permalink
Added some defines
Browse files Browse the repository at this point in the history
  • Loading branch information
moetunes committed Nov 25, 2011
1 parent 851b98d commit 1fea9a6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions wallclock.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@
#define minute_hand_colour "#664422"
#define second_hand_colour "#886644"
#define clock_face_colour "#444444"
#define hh_l 60
#define hh_l 60 /* length of the hands */
#define mh_l 75
#define sh_l 88
#define hh_w 8 /* Thickness of the hands */
#define mh_w 6
#define sh_w 3

time_t t;
struct tm *tmval;
Expand Down Expand Up @@ -144,19 +147,19 @@ int main(int argc, char ** argv){

/* create the hour_h GC to draw the hour hand */
values.foreground = getcolor(hour_hand_colour);
values.line_width = 6;
values.line_width = hh_w;
values.line_style = LineSolid;
hour_h = XCreateGC(dis, win, GCForeground|GCLineWidth|GCLineStyle,&values);

/* create the min_h GC to draw the minute hand */
values.foreground = getcolor(minute_hand_colour);
values.line_width = 4;
values.line_width = mh_w;
values.line_style = LineSolid;
min_h = XCreateGC(dis, win, GCForeground|GCLineWidth|GCLineStyle,&values);

/* create the sec_h GC to draw the second hand */
values.foreground = getcolor(second_hand_colour);
values.line_width = 2;
values.line_width = sh_w;
values.line_style = LineSolid;
sec_h = XCreateGC(dis, win, GCForeground|GCLineWidth|GCLineStyle,&values);

Expand Down

0 comments on commit 1fea9a6

Please sign in to comment.