From: Jason Rumney Date: Wed, 6 Jun 2007 20:29:45 +0000 (+0000) Subject: (w32font_draw): Delete brush after using it. X-Git-Tag: emacs-pretest-23.0.90~8295^2~441 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f2b25c0e737018b4029499294328bb6d8475c6fa;p=emacs.git (w32font_draw): Delete brush after using it. --- diff --git a/src/w32font.c b/src/w32font.c index 8f9350cdd96..701751fc41b 100644 --- a/src/w32font.c +++ b/src/w32font.c @@ -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,