diff options
author | Phil Jones <philj56@gmail.com> | 2023-02-26 18:18:57 +0000 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2023-02-26 18:18:57 +0000 |
commit | 6fa119926ad7cc6142cd876dc5b8d24fd99ce181 (patch) | |
tree | fac28fde8ac503c7db13d40b2ed1416894de7635 /src/main.c | |
parent | 81560bbdc60cd8155a5a084f6dadfb769e6a637c (diff) |
Log when the second buffer is created.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -97,7 +97,7 @@ static void zwlr_layer_surface_configure( log_debug("Layer surface configure with no width or height.\n"); return; } - log_debug("Layer surface configure, %d x %d.\n", width, height); + log_debug("Layer surface configure, %u x %u.\n", width, height); /* * Resize the main window. @@ -1542,11 +1542,13 @@ int main(int argc, char *argv[]) * possible after startup. */ wl_display_roundtrip(tofi.wl_display); + log_debug("Initialising second buffer.\n"); memcpy( cairo_image_surface_get_data(tofi.window.entry.cairo[1].surface), cairo_image_surface_get_data(tofi.window.entry.cairo[0].surface), tofi.window.entry.image.width * tofi.window.entry.image.height * sizeof(uint32_t) ); + log_debug("Second buffer initialised.\n"); /* We've just rendered, so we don't need to do it again right now. */ tofi.window.surface.redraw = false; |