| 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 |
| r243618 | r243619 | |
|---|---|---|
| 12 | 12 | |
| 13 | 13 | // TODO: |
| 14 | 14 | // * Automatic scrolling for console and log views |
| 15 | // * Keyboard shortcuts in error log and device | |
| 15 | // * Keyboard shortcuts in error log and device windows | |
| 16 | 16 | // * Don't accept keyboard input while the game is running |
| 17 | 17 | // * Interior focus rings - standard/exterior focus rings look really ugly here |
| 18 | // * Improve automatic window sizing - it isn't working all that well | |
| 19 | 18 | // * Updates causing debug views' widths to change are sometimes obscured by the scroll views' opaque backgrounds |
| 20 | 19 | // * Scroll views with content narrower than clipping area are flaky under Tiger - nothing I can do about this |
| 21 | 20 |
| r243618 | r243619 | |
|---|---|---|
| 264 | 264 | |
| 265 | 265 | - (NSSize)maximumFrameSize { |
| 266 | 266 | 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)); | |
| 269 | 269 | } |
| 270 | 270 | |
| 271 | 271 |
| r243618 | r243619 | |
|---|---|---|
| 101 | 101 | max.y = MAX(max.y, current.y); |
| 102 | 102 | } |
| 103 | 103 | 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)); | |
| 105 | 106 | } |
| 106 | 107 | |
| 107 | 108 |
| r243618 | r243619 | |
|---|---|---|
| 66 | 66 | max.y = MAX(max.y, current.y); |
| 67 | 67 | } |
| 68 | 68 | 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)); | |
| 70 | 71 | } |
| 71 | 72 | |
| 72 | 73 |
| https://github.com/mamedev/mame/commit/c46847b551a099861677f677cf60013e3165ba41 |
| Previous | 199869 Revisions | Next |