Mercurial > dwindows
comparison win/dw.c @ 1231:4a7a9f102a5f
Fix for dw_font_text_extents_get() not on Windows honoring the font set with dw_pixmap_set_font().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 16 Oct 2011 19:26:10 +0000 |
parents | 437b045a3b07 |
children | 700ce342aab8 |
comparison
equal
deleted
inserted
replaced
1230:75a773cdb626 | 1231:4a7a9f102a5f |
---|---|
8639 else if(pixmap) | 8639 else if(pixmap) |
8640 hdc = pixmap->hdc; | 8640 hdc = pixmap->hdc; |
8641 else | 8641 else |
8642 return; | 8642 return; |
8643 | 8643 |
8644 if(pixmap && pixmap->font) | |
8645 { | |
8646 hFont = pixmap->font; | |
8647 } | |
8648 else | |
8644 { | 8649 { |
8645 ColorInfo *cinfo; | 8650 ColorInfo *cinfo; |
8646 | 8651 |
8647 if(handle) | 8652 if(handle) |
8648 cinfo = (ColorInfo *)GetWindowLongPtr(handle, GWLP_USERDATA); | 8653 cinfo = (ColorInfo *)GetWindowLongPtr(handle, GWLP_USERDATA); |