Mercurial > vim
comparison src/gui.c @ 1199:3acf7c922a04
updated for version 7.1b
author | vimboss |
---|---|
date | Thu, 10 May 2007 17:24:16 +0000 |
parents | 26a577a823aa |
children | 9947133ce85b |
comparison
equal
deleted
inserted
replaced
1198:721513ac52d0 | 1199:3acf7c922a04 |
---|---|
1967 * Output the given string at the current cursor position. If the string is | 1967 * Output the given string at the current cursor position. If the string is |
1968 * too long to fit on the line, then it is truncated. | 1968 * too long to fit on the line, then it is truncated. |
1969 * "flags": | 1969 * "flags": |
1970 * GUI_MON_IS_CURSOR should only be used when this function is being called to | 1970 * GUI_MON_IS_CURSOR should only be used when this function is being called to |
1971 * actually draw (an inverted) cursor. | 1971 * actually draw (an inverted) cursor. |
1972 * GUI_MON_TRS_CURSOR is used to draw the cursor text with a transparant | 1972 * GUI_MON_TRS_CURSOR is used to draw the cursor text with a transparent |
1973 * background. | 1973 * background. |
1974 * GUI_MON_NOCLEAR is used to avoid clearing the selection when drawing over | 1974 * GUI_MON_NOCLEAR is used to avoid clearing the selection when drawing over |
1975 * it. | 1975 * it. |
1976 * Returns OK, unless "back" is non-zero and using the bold trick, then return | 1976 * Returns OK, unless "back" is non-zero and using the bold trick, then return |
1977 * FAIL (the caller should start drawing "back" chars back). | 1977 * FAIL (the caller should start drawing "back" chars back). |
2177 #endif | 2177 #endif |
2178 /* Do we undercurl the text? */ | 2178 /* Do we undercurl the text? */ |
2179 if (hl_mask_todo & HL_UNDERCURL) | 2179 if (hl_mask_todo & HL_UNDERCURL) |
2180 draw_flags |= DRAW_UNDERC; | 2180 draw_flags |= DRAW_UNDERC; |
2181 | 2181 |
2182 /* Do we draw transparantly? */ | 2182 /* Do we draw transparently? */ |
2183 if (flags & GUI_MON_TRS_CURSOR) | 2183 if (flags & GUI_MON_TRS_CURSOR) |
2184 draw_flags |= DRAW_TRANSP; | 2184 draw_flags |= DRAW_TRANSP; |
2185 | 2185 |
2186 /* | 2186 /* |
2187 * Draw the text. | 2187 * Draw the text. |
2673 gui_mch_stop_blink(); | 2673 gui_mch_stop_blink(); |
2674 return retval; | 2674 return retval; |
2675 } | 2675 } |
2676 | 2676 |
2677 /* | 2677 /* |
2678 * While we are waiting indefenitely for a character, blink the cursor. | 2678 * While we are waiting indefinitely for a character, blink the cursor. |
2679 */ | 2679 */ |
2680 gui_mch_start_blink(); | 2680 gui_mch_start_blink(); |
2681 | 2681 |
2682 retval = FAIL; | 2682 retval = FAIL; |
2683 /* | 2683 /* |