rnd-20030107-1-src
[rocksndiamonds.git] / src / libgame / text.c
index 5328f18b28200c8eee5e50adcff86aea78e74da1..48974eb74bb67ef34865e4cd0bccd71bee8ef379 100644 (file)
@@ -292,9 +292,8 @@ void DrawTextExt(DrawBuffer *bitmap, int x, int y, char *text,
       else if (mask_mode == FONT_MASKED)
       {
        /* clear font character background */
-       BlitBitmap(gfx.background_bitmap, bitmap,
-                  dest_x - gfx.real_sx, dest_y - gfx.real_sy,
-                  font_width, font_height, dest_x, dest_y);
+       ClearRectangleOnBackground(bitmap, dest_x, dest_y,
+                                  font_width, font_height);
 
 #if defined(TARGET_X11_NATIVE_PERFORMANCE_WORKAROUND)
        /* use special font tile clipmasks, if available */