Previous 199869 Revisions Next

r35107 Wednesday 18th February, 2015 at 14:55:24 UTC by Vasantha Crabb
Better autosizing for windows
[src/osd/modules/debugger]debugosx.m
[src/osd/modules/debugger/osx]debugview.m disassemblyview.m memoryview.m

trunk/src/osd/modules/debugger/debugosx.m
r243618r243619
1212
1313// TODO:
1414//  * Automatic scrolling for console and log views
15//  * Keyboard shortcuts in error log and devices windows
15//  * Keyboard shortcuts in error log and device windows
1616//  * Don't accept keyboard input while the game is running
1717//  * Interior focus rings - standard/exterior focus rings look really ugly here
18//  * Improve automatic window sizing - it isn't working all that well
1918//  * Updates causing debug views' widths to change are sometimes obscured by the scroll views' opaque backgrounds
2019//  * Scroll views with content narrower than clipping area are flaky under Tiger - nothing I can do about this
2120
trunk/src/osd/modules/debugger/osx/debugview.m
r243618r243619
264264
265265- (NSSize)maximumFrameSize {
266266   debug_view_xy const max = view->total_size();
267   return NSMakeSize((max.x * fontWidth) + (2 * [textContainer lineFragmentPadding]),
268                  max.y * fontHeight);
267   return NSMakeSize(ceil((max.x * fontWidth) + (2 * [textContainer lineFragmentPadding])),
268                 ceil(max.y * fontHeight));
269269}
270270
271271
trunk/src/osd/modules/debugger/osx/disassemblyview.m
r243618r243619
101101      max.y = MAX(max.y, current.y);
102102   }
103103   view->set_source(*source);
104   return NSMakeSize(max.x * fontWidth, max.y * fontHeight);
104   return NSMakeSize(ceil((max.x * fontWidth) + (2 * [textContainer lineFragmentPadding])),
105                 ceil(max.y * fontHeight));
105106}
106107
107108
trunk/src/osd/modules/debugger/osx/memoryview.m
r243618r243619
6666      max.y = MAX(max.y, current.y);
6767   }
6868   view->set_source(*source);
69   return NSMakeSize(max.x * fontWidth, max.y * fontHeight);
69   return NSMakeSize(ceil((max.x * fontWidth) + (2 * [textContainer lineFragmentPadding])),
70                 ceil(max.y * fontHeight));
7071}
7172
7273


Previous 199869 Revisions Next


© 1997-2024 The MAME Team