aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2007-06-06 20:29:45 +0000
committerJason Rumney2007-06-06 20:29:45 +0000
commitf2b25c0e737018b4029499294328bb6d8475c6fa (patch)
tree41828d14c1d9ff109bfb31d8a5a2eaca92631521 /src
parent812099f3c8045878ecd04bbdb215b9d4be574bce (diff)
downloademacs-f2b25c0e737018b4029499294328bb6d8475c6fa.tar.gz
emacs-f2b25c0e737018b4029499294328bb6d8475c6fa.zip
(w32font_draw): Delete brush after using it.
Diffstat (limited to 'src')
-rw-r--r--src/w32font.c3
1 files changed, 2 insertions, 1 deletions
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)
504 rect.right = x + s->width; 504 rect.right = x + s->width;
505 rect.bottom = y + ((struct font *) (s->font_info->font))->descent; 505 rect.bottom = y + ((struct font *) (s->font_info->font))->descent;
506 FillRect (s->hdc, &rect, brush); 506 FillRect (s->hdc, &rect, brush);
507 DeleteObject (brush);
507 } 508 }
508 else 509 else
509 SetBkMode (s->hdc, TRANSPARENT); 510 SetBkMode (s->hdc, TRANSPARENT);
@@ -535,7 +536,7 @@ w32font_done_face (FRAME_PTR f, struct face *face); */
535/* w32 implementation of get_bitmap for font backend. 536/* w32 implementation of get_bitmap for font backend.
536 Optional. 537 Optional.
537 Store bitmap data for glyph-code CODE of FONT in BITMAP. It is 538 Store bitmap data for glyph-code CODE of FONT in BITMAP. It is
538 intended that this method is callled from the other font-driver 539 intended that this method is called from the other font-driver
539 for actual drawing. 540 for actual drawing.
540static int 541static int
541w32font_get_bitmap (struct font *font, unsigned code, 542w32font_get_bitmap (struct font *font, unsigned code,