diff options
author | Vincent Torri <Vincent.Torri@iecn.u-nancy.fr> | 2006-01-20 08:47:06 +0000 |
---|---|---|
committer | Vincent Torri <Vincent.Torri@iecn.u-nancy.fr> | 2006-01-20 08:47:06 +0000 |
commit | 5b24c87663d871e009c26280e09b18e9a901e409 (patch) | |
tree | 2d76bb325a4eb97e468ba7cea2f7ca17998c5dd6 | |
parent | e99ef1c5ff48164e5dde6c728849a84fc1abb074 (diff) |
I was young, full of false ideas...
-rw-r--r-- | xcb-util/image/xcb_image.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xcb-util/image/xcb_image.c b/xcb-util/image/xcb_image.c index 7c48a1f..ec0f8e1 100644 --- a/xcb-util/image/xcb_image.c +++ b/xcb-util/image/xcb_image.c @@ -305,13 +305,12 @@ XCBImagePut (XCBConnection *conn, else { XCBFORMATIter iter; - int cur; dest_bits_per_pixel = image->bits_per_pixel; dest_scanline_pad = image->bitmap_format_scanline_pad; left_pad = 0; iter = XCBConnSetupSuccessRepPixmapFormatsIter (XCBGetSetup (conn)); - for (cur = 0 ; cur < iter.rem ; cur++, XCBFORMATNext (&iter)) + for (; iter.rem ; XCBFORMATNext (&iter)) if (iter.data->depth == image->depth) { dest_bits_per_pixel = iter.data->bits_per_pixel; |