Mercurial > vim
comparison src/os_mswin.c @ 843:9f279ebda751 v7.0f01
updated for version 7.0f01
author | vimboss |
---|---|
date | Tue, 25 Apr 2006 22:13:59 +0000 |
parents | 2c885fab04e3 |
children | d3bbb5dd3913 |
comparison
equal
deleted
inserted
replaced
842:a209672376fd | 843:9f279ebda751 |
---|---|
2321 { | 2321 { |
2322 SelectObject(prt_dlg.hDC, prt_font_handles[iBold][iItalic][iUnderline]); | 2322 SelectObject(prt_dlg.hDC, prt_font_handles[iBold][iItalic][iUnderline]); |
2323 } | 2323 } |
2324 | 2324 |
2325 void | 2325 void |
2326 mch_print_set_bg(unsigned long bgcol) | 2326 mch_print_set_bg(long_u bgcol) |
2327 { | 2327 { |
2328 SetBkColor(prt_dlg.hDC, GetNearestColor(prt_dlg.hDC, swap_me(bgcol))); | 2328 SetBkColor(prt_dlg.hDC, GetNearestColor(prt_dlg.hDC, |
2329 swap_me((COLORREF)bgcol))); | |
2329 /* | 2330 /* |
2330 * With a white background we can draw characters transparent, which is | 2331 * With a white background we can draw characters transparent, which is |
2331 * good for italic characters that overlap to the next char cell. | 2332 * good for italic characters that overlap to the next char cell. |
2332 */ | 2333 */ |
2333 if (bgcol == 0xffffffUL) | 2334 if (bgcol == 0xffffffUL) |
2335 else | 2336 else |
2336 SetBkMode(prt_dlg.hDC, OPAQUE); | 2337 SetBkMode(prt_dlg.hDC, OPAQUE); |
2337 } | 2338 } |
2338 | 2339 |
2339 void | 2340 void |
2340 mch_print_set_fg(unsigned long fgcol) | 2341 mch_print_set_fg(long_u fgcol) |
2341 { | 2342 { |
2342 SetTextColor(prt_dlg.hDC, GetNearestColor(prt_dlg.hDC, swap_me(fgcol))); | 2343 SetTextColor(prt_dlg.hDC, GetNearestColor(prt_dlg.hDC, |
2344 swap_me((COLORREF)fgcol))); | |
2343 } | 2345 } |
2344 | 2346 |
2345 #endif /*FEAT_PRINTER && !FEAT_POSTSCRIPT*/ | 2347 #endif /*FEAT_PRINTER && !FEAT_POSTSCRIPT*/ |
2346 | 2348 |
2347 | 2349 |