Changeset 106
- Timestamp:
- 05/02/07 15:24:36 (2 years ago)
- Files:
-
- trunk/src/main-crb.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main-crb.c
r105 r106 246 246 GlyphInfo *ginfo; 247 247 248 Rect r; // Absolute bounds of window. 248 Rect wr; // Absolute bounds of window (for save/restore) 249 Rect r; // Canvas bounds of window (for mouse addressing &c) 249 250 CGRect bounds; // Relative bounds of border-clipped canvas. 250 251 … … 925 926 926 927 SizeWindow(td->w, td->size_wid, td->size_hgt, 0); 928 /* Get absolute bounds of window */ 929 GetWindowBounds((WindowRef)td->w, kWindowGlobalPortRgn, &td->wr); 930 927 931 // Cheat a little -- can't use the active view to redraw its own border. 928 932 CGContextRef tmpCtx; … … 2075 2079 { 2076 2080 CFStringRef cf_key; 2077 CFPropertyListRef cf_value ;2081 CFPropertyListRef cf_value = 0; 2078 2082 2079 2083 /* allocate and initialise the key */ … … 2201 2205 save_pref_short(format("term%d.cols", i), td->cols); 2202 2206 save_pref_short(format("term%d.rows", i), td->rows); 2203 save_pref_short(format("term%d.left", i), td-> r.left);2204 save_pref_short(format("term%d.top", i), td-> r.top);2207 save_pref_short(format("term%d.left", i), td->wr.left); 2208 save_pref_short(format("term%d.top", i), td->wr.top); 2205 2209 2206 2210 /* Integer font sizes only */ … … 2246 2250 } 2247 2251 2248 #if 02249 2252 2250 2253 /* Check version */ … … 2254 2257 (pref_extra != VERSION_EXTRA)) 2255 2258 { 2259 #if 1 // For 3.0.8 : pref file change! 2256 2260 /* Message */ 2257 2261 mac_warning( … … 2261 2265 /* Ignore */ 2262 2266 return; 2263 } 2264 2267 #else 2268 mac_warning(format("Preference file has changed. If you have display problems, delete %s and restart", )); 2265 2269 #endif 2270 } 2271 2266 2272 2267 2273 /* HACK - Check for broken preferences */ … … 2891 2897 Rect tmpR; 2892 2898 GetWindowBounds((WindowRef)td->w, kWindowContentRgn, &tmpR); 2899 GetWindowBounds((WindowRef)td->w, kWindowGlobalPortRgn, &td->wr); 2893 2900 td->r = tmpR; 2894 2901 if(td->r.top < 40) td->r.top = 40;
