|
@ -580,10 +580,10 @@ xcb_pixmap_t draw_image(uint32_t *resolution) { |
|
|
ty = 0; |
|
|
ty = 0; |
|
|
tx = te_eval(te_time_x_expr); |
|
|
tx = te_eval(te_time_x_expr); |
|
|
ty = te_eval(te_time_y_expr); |
|
|
ty = te_eval(te_time_y_expr); |
|
|
double time_x = tx - CLOCK_WIDTH / 2; |
|
|
double time_x = tx; |
|
|
double time_y = ty - CLOCK_HEIGHT / 2; |
|
|
double time_y = ty; |
|
|
double date_x = te_eval(te_date_x_expr) - CLOCK_WIDTH / 2; |
|
|
double date_x = te_eval(te_date_x_expr); |
|
|
double date_y = te_eval(te_date_y_expr) - CLOCK_HEIGHT / 2; |
|
|
double date_y = te_eval(te_date_y_expr); |
|
|
DEBUG("tx: %f ty: %f ix: %f, iy: %f\n", tx, ty, ix, iy); |
|
|
DEBUG("tx: %f ty: %f ix: %f, iy: %f\n", tx, ty, ix, iy); |
|
|
DEBUG("\ttime_x: %f time_y: %f date_x: %f date_y: %f screen_number: %d\n", time_x, time_y, date_x, date_y, screen_number); |
|
|
DEBUG("\ttime_x: %f time_y: %f date_x: %f date_y: %f screen_number: %d\n", time_x, time_y, date_x, date_y, screen_number); |
|
|
DEBUG("\tscreen x: %d screen y: %d screen w: %f screen h: %f\n", xr_resolutions[screen_number].x, xr_resolutions[screen_number].y, w, h); |
|
|
DEBUG("\tscreen x: %d screen y: %d screen w: %f screen h: %f\n", xr_resolutions[screen_number].x, xr_resolutions[screen_number].y, w, h); |
|
@ -612,10 +612,10 @@ xcb_pixmap_t draw_image(uint32_t *resolution) { |
|
|
ty = 0; |
|
|
ty = 0; |
|
|
tx = te_eval(te_time_x_expr); |
|
|
tx = te_eval(te_time_x_expr); |
|
|
ty = te_eval(te_time_y_expr); |
|
|
ty = te_eval(te_time_y_expr); |
|
|
double time_x = tx - CLOCK_WIDTH / 2; |
|
|
double time_x = tx; |
|
|
double time_y = ty - CLOCK_HEIGHT / 2; |
|
|
double time_y = ty; |
|
|
double date_x = te_eval(te_date_x_expr) - CLOCK_WIDTH / 2; |
|
|
double date_x = te_eval(te_date_x_expr); |
|
|
double date_y = te_eval(te_date_y_expr) - CLOCK_HEIGHT / 2; |
|
|
double date_y = te_eval(te_date_y_expr); |
|
|
DEBUG("tx: %f ty: %f f ix: %f iy: %f\n", tx, ty, ix, iy); |
|
|
DEBUG("tx: %f ty: %f f ix: %f iy: %f\n", tx, ty, ix, iy); |
|
|
DEBUG("\ttime_x: %f time_y: %f date_x: %f date_y: %f screen_number: %d\n", time_x, time_y, date_x, date_y, screen); |
|
|
DEBUG("\ttime_x: %f time_y: %f date_x: %f date_y: %f screen_number: %d\n", time_x, time_y, date_x, date_y, screen); |
|
|
DEBUG("\tscreen x: %d screen y: %d screen w: %f screen h: %f\n", xr_resolutions[screen].x, xr_resolutions[screen].y, w, h); |
|
|
DEBUG("\tscreen x: %d screen y: %d screen w: %f screen h: %f\n", xr_resolutions[screen].x, xr_resolutions[screen].y, w, h); |
|
|