Index: uspace/lib/gfx/include/gfx/bitmap.h
===================================================================
--- uspace/lib/gfx/include/gfx/bitmap.h	(revision 0e6e77f09b348a14b2b1fa8165b25000755a93f1)
+++ uspace/lib/gfx/include/gfx/bitmap.h	(revision 7bb45e33b98aa347a21453b63e27f209dc3ab3d9)
@@ -42,4 +42,5 @@
 #include <types/gfx/bitmap.h>
 
+extern void gfx_bitmap_params_init(gfx_bitmap_params_t *);
 extern errno_t gfx_bitmap_create(gfx_context_t *, gfx_bitmap_params_t *,
     gfx_bitmap_alloc_t *, gfx_bitmap_t **);
Index: uspace/lib/gfx/src/bitmap.c
===================================================================
--- uspace/lib/gfx/src/bitmap.c	(revision 0e6e77f09b348a14b2b1fa8165b25000755a93f1)
+++ uspace/lib/gfx/src/bitmap.c	(revision 7bb45e33b98aa347a21453b63e27f209dc3ab3d9)
@@ -35,8 +35,21 @@
 
 #include <gfx/bitmap.h>
+#include <mem.h>
 #include <stdint.h>
 #include <stdlib.h>
 #include "../private/bitmap.h"
 #include "../private/context.h"
+
+/** Initialize bitmap parameters structure.
+ *
+ * Bitmap parameters structure must always be initialized using this function
+ * first.
+ *
+ * @param params Bitmap parameters structure
+ */
+void gfx_bitmap_params_init(gfx_bitmap_params_t *params)
+{
+	memset(params, 0, sizeof(gfx_bitmap_params_t));
+}
 
 /** Allocate bitmap in a graphics context.
Index: uspace/lib/gfx/test/bitmap.c
===================================================================
--- uspace/lib/gfx/test/bitmap.c	(revision 0e6e77f09b348a14b2b1fa8165b25000755a93f1)
+++ uspace/lib/gfx/test/bitmap.c	(revision 7bb45e33b98aa347a21453b63e27f209dc3ab3d9)
@@ -84,4 +84,5 @@
 	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
 
+	gfx_bitmap_params_init(&params);
 	params.rect.p0.x = 1;
 	params.rect.p0.y = 2;
@@ -120,4 +121,6 @@
 	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
 
+	gfx_bitmap_params_init(&params);
+
 	rc = gfx_bitmap_create(gc, &params, NULL, &bitmap);
 	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
@@ -159,4 +162,6 @@
 	rc = gfx_context_new(&ops, &tgc, &gc);
 	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
+
+	gfx_bitmap_params_init(&params);
 
 	rc = gfx_bitmap_create(gc, &params, NULL, &bitmap);
Index: uspace/lib/gfx/test/coord.c
===================================================================
--- uspace/lib/gfx/test/coord.c	(revision 0e6e77f09b348a14b2b1fa8165b25000755a93f1)
+++ uspace/lib/gfx/test/coord.c	(revision 7bb45e33b98aa347a21453b63e27f209dc3ab3d9)
@@ -598,5 +598,5 @@
 
 /** Rectangle dimensions for reversed rectangle are computed correctly */
-PCUT_TEST(rect_dims_straight)
+PCUT_TEST(rect_dims_reversed)
 {
 	gfx_rect_t rect;
