Skip to content

Commit

Permalink
Cleanup logs (i3#3479)
Browse files Browse the repository at this point in the history
  • Loading branch information
buchankn committed Feb 18, 2023
1 parent 8c3b982 commit a6bbaf0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions libi3/draw_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ void draw_util_sparse_surface_create_and_init(xcb_connection_t *conn, sparse_sur
sparse_surface->side_surface[i].height = 0;
}

DLOG("KNB3 -- Create pixmap for tabbed/stacked of size %d, %d\n", width, height);

sparse_surface->side_surface[SPARSE_SURFACE_TOP].width = width;
sparse_surface->side_surface[SPARSE_SURFACE_TOP].height = height;
sparse_surface->x_offset[SPARSE_SURFACE_TOP] = 0;
Expand Down Expand Up @@ -483,23 +481,13 @@ void draw_util_sparse_copy_surface(sparse_surface_t *src_sparse, surface_t *dest
src_x_adjusted = src_x - src_sparse->x_offset[i];
src_y_adjusted = src_y - src_sparse->y_offset[i];

DLOG("KNB -- copy surface input src x, y: %f, %f dest x, y: %f, %f w, h: %f, %f --> dest x, y: %f, %f, w, h: %d, %d (surface->drawable[%d].id = (pixmap_t)0x%08x))\n",
src_x, src_y, dest_x, dest_y, width, height, dest_x - src_x_adjusted, dest_y - src_y_adjusted,
src_sparse->side_surface[i].width, src_sparse->side_surface[i].height,
i, src_sparse->side_surface[i].id);

/* Using the SOURCE operator will copy both color and alpha information directly
* onto the surface rather than blending it. This is a bit more efficient and
* allows better color control for the user when using opacity. */
cairo_set_operator(dest->cr, CAIRO_OPERATOR_SOURCE);

cairo_set_source_surface(dest->cr, src_sparse->side_surface[i].surface, dest_x - src_x_adjusted, dest_y - src_y_adjusted);

DLOG("KNB2 -- copy surface dest x, y: %f, %f w, h: %d, %d (surface->drawable[%d].id = (pixmap_t)0x%08x))\n",
dest_x, dest_y,
src_sparse->side_surface[i].width, src_sparse->side_surface[i].height,
i, src_sparse->side_surface[i].id);

cairo_rectangle(dest->cr, dest_x - src_x_adjusted, dest_y - src_y_adjusted,
src_sparse->side_surface[i].width, src_sparse->side_surface[i].height);
cairo_fill(dest->cr);
Expand Down

0 comments on commit a6bbaf0

Please sign in to comment.