changeset 90915:9aac5aff0dda

(w32font_draw): Delete brush after using it.
author Jason Rumney <jasonr@gnu.org>
date Wed, 06 Jun 2007 20:29:45 +0000
parents 11026ef03ce7
children 692d8cb9b6e4
files src/w32font.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32font.c	Wed Jun 06 20:28:01 2007 +0000
+++ b/src/w32font.c	Wed Jun 06 20:29:45 2007 +0000
@@ -504,6 +504,7 @@
       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 @@
 /* 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,