+#if defined(TARGET_X11_NATIVE_PERFORMANCE_WORKAROUND)
+ int i;
+
+ for (i=0; i<4; i++)
+ {
+ scrollbar_bitmap[i] = CreateBitmap(TILEX, TILEY, DEFAULT_DEPTH);
+
+ /* copy pointers to clip mask and GC */
+ scrollbar_bitmap[i]->clip_mask =
+ graphic_info[IMG_SCROLLBAR_BLUE + i].clip_mask;
+ scrollbar_bitmap[i]->stored_clip_gc =
+ graphic_info[IMG_SCROLLBAR_BLUE + i].clip_gc;
+
+ BlitBitmap(graphic_info[IMG_SCROLLBAR_BLUE + i].bitmap,
+ scrollbar_bitmap[i],
+ graphic_info[IMG_SCROLLBAR_BLUE + i].src_x,
+ graphic_info[IMG_SCROLLBAR_BLUE + i].src_y,
+ TILEX, TILEY, 0, 0);
+ }
+#endif
+