Mercurial > vim
comparison src/gui.c @ 2823:8bd38abda314 v7.3.187
updated for version 7.3.187
Problem: The RISC OS port has obvious errors and is not being maintained.
Solution: Remove the RISC OS files and code.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 10 May 2011 16:41:25 +0200 |
parents | 951641b8784d |
children | 07647a0545c9 |
comparison
equal
deleted
inserted
replaced
2822:7b62cd406330 | 2823:8bd38abda314 |
---|---|
2154 sp_color = fg_color; | 2154 sp_color = fg_color; |
2155 } | 2155 } |
2156 | 2156 |
2157 if (highlight_mask & (HL_INVERSE | HL_STANDOUT)) | 2157 if (highlight_mask & (HL_INVERSE | HL_STANDOUT)) |
2158 { | 2158 { |
2159 #if defined(AMIGA) || defined(RISCOS) | 2159 #if defined(AMIGA) |
2160 gui_mch_set_colors(bg_color, fg_color); | 2160 gui_mch_set_colors(bg_color, fg_color); |
2161 #else | 2161 #else |
2162 gui_mch_set_fg_color(bg_color); | 2162 gui_mch_set_fg_color(bg_color); |
2163 gui_mch_set_bg_color(fg_color); | 2163 gui_mch_set_bg_color(fg_color); |
2164 #endif | 2164 #endif |
2165 } | 2165 } |
2166 else | 2166 else |
2167 { | 2167 { |
2168 #if defined(AMIGA) || defined(RISCOS) | 2168 #if defined(AMIGA) |
2169 gui_mch_set_colors(fg_color, bg_color); | 2169 gui_mch_set_colors(fg_color, bg_color); |
2170 #else | 2170 #else |
2171 gui_mch_set_fg_color(fg_color); | 2171 gui_mch_set_fg_color(fg_color); |
2172 gui_mch_set_bg_color(bg_color); | 2172 gui_mch_set_bg_color(bg_color); |
2173 #endif | 2173 #endif |
2191 * just after a blank. | 2191 * just after a blank. |
2192 */ | 2192 */ |
2193 if (back != 0 && ((draw_flags & DRAW_BOLD) || (highlight_mask & HL_ITALIC))) | 2193 if (back != 0 && ((draw_flags & DRAW_BOLD) || (highlight_mask & HL_ITALIC))) |
2194 return FAIL; | 2194 return FAIL; |
2195 | 2195 |
2196 #if defined(RISCOS) || defined(FEAT_GUI_GTK) | 2196 #if defined(FEAT_GUI_GTK) |
2197 /* If there's no italic font, then fake it. | 2197 /* If there's no italic font, then fake it. |
2198 * For GTK2, we don't need a different font for italic style. */ | 2198 * For GTK2, we don't need a different font for italic style. */ |
2199 if (hl_mask_todo & HL_ITALIC) | 2199 if (hl_mask_todo & HL_ITALIC) |
2200 draw_flags |= DRAW_ITALIC; | 2200 draw_flags |= DRAW_ITALIC; |
2201 | 2201 |
2983 clip_process_selection(button, X_2_COL(x), Y_2_ROW(y), | 2983 clip_process_selection(button, X_2_COL(x), Y_2_ROW(y), |
2984 repeated_click); | 2984 repeated_click); |
2985 did_clip = TRUE; | 2985 did_clip = TRUE; |
2986 } | 2986 } |
2987 /* Allow the left button to start the selection */ | 2987 /* Allow the left button to start the selection */ |
2988 else if (button == | 2988 else if (button == MOUSE_LEFT) |
2989 # ifdef RISCOS | |
2990 /* Only start a drag on a drag event. Otherwise | |
2991 * we don't get a release event. */ | |
2992 MOUSE_DRAG | |
2993 # else | |
2994 MOUSE_LEFT | |
2995 # endif | |
2996 ) | |
2997 { | 2989 { |
2998 clip_start_selection(X_2_COL(x), Y_2_ROW(y), repeated_click); | 2990 clip_start_selection(X_2_COL(x), Y_2_ROW(y), repeated_click); |
2999 did_clip = TRUE; | 2991 did_clip = TRUE; |
3000 } | 2992 } |
3001 # ifdef RISCOS | |
3002 else if (button == MOUSE_LEFT) | |
3003 { | |
3004 clip_clear_selection(); | |
3005 did_clip = TRUE; | |
3006 } | |
3007 # endif | |
3008 | 2993 |
3009 /* Always allow pasting */ | 2994 /* Always allow pasting */ |
3010 if (button != MOUSE_MIDDLE) | 2995 if (button != MOUSE_MIDDLE) |
3011 { | 2996 { |
3012 if (!mouse_has(checkfor) || button == MOUSE_RELEASE) | 2997 if (!mouse_has(checkfor) || button == MOUSE_RELEASE) |