]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32font_draw): Delete brush after using it.
authorJason Rumney <jasonr@gnu.org>
Wed, 6 Jun 2007 20:29:45 +0000 (20:29 +0000)
committerJason Rumney <jasonr@gnu.org>
Wed, 6 Jun 2007 20:29:45 +0000 (20:29 +0000)
src/w32font.c

index 8f9350cdd96a9bba6e5099ced113a79cffc0dc93..701751fc41bddb18b50c1598a44f906a2ab20d97 100644 (file)
@@ -504,6 +504,7 @@ w32font_draw (s, from, to, x, y, with_background)
       rect.right = x + s->width;
       rect.bottom = y + ((struct font *) (s->font_info->font))->descent;
       FillRect (s->hdc, &rect, brush);
+      DeleteObject (brush);
     }
   else
     SetBkMode (s->hdc, TRANSPARENT);
@@ -535,7 +536,7 @@ w32font_done_face (FRAME_PTR f, struct face *face);  */
 /* w32 implementation of get_bitmap for font backend.
    Optional.
    Store bitmap data for glyph-code CODE of FONT in BITMAP.  It is
-   intended that this method is callled from the other font-driver
+   intended that this method is called from the other font-driver
    for actual drawing.
 static int
 w32font_get_bitmap (struct font *font, unsigned code,