src/osd/sdl/debugosx.c
| r1213 | r1214 | |
| 533 | 533 | static debugwin_info *debug_window_create(const char *title, void *unused) |
| 534 | 534 | { |
| 535 | 535 | CGDirectDisplayID mainID = CGMainDisplayID(); |
| 536 | | HIRect mainBounds; |
| 536 | GDHandle mainDevice; |
| 537 | 537 | |
| 538 | 538 | debugwin_info *info = NULL; |
| 539 | 539 | Rect work_bounds; |
| r1213 | r1214 | |
| 578 | 578 | } |
| 579 | 579 | |
| 580 | 580 | // fill in some defaults |
| 581 | | HIWindowGetAvailablePositioningBounds( mainID, kHICoordSpaceScreenPixel, &mainBounds ); |
| 582 | | work_bounds.left = mainBounds.origin.x; |
| 583 | | work_bounds.top = mainBounds.origin.y; |
| 584 | | work_bounds.right = mainBounds.origin.x + mainBounds.size.width; |
| 585 | | work_bounds.bottom = mainBounds.origin.y + mainBounds.size.height; |
| 581 | DMGetGDeviceByDisplayID((DisplayIDType)mainID, &mainDevice, TRUE); |
| 582 | GetAvailableWindowPositioningBounds(mainDevice, &work_bounds); |
| 586 | 583 | info->minwidth = 200; |
| 587 | 584 | info->minheight = 200; |
| 588 | 585 | info->maxwidth = work_bounds.right - work_bounds.left; |
| r1213 | r1214 | |
| 3025 | 3022 | ControlFontStyleRec style; |
| 3026 | 3023 | Str255 fontName; |
| 3027 | 3024 | CGDirectDisplayID mainID = CGMainDisplayID(); |
| 3028 | | HIRect mainBounds; |
| 3025 | GDHandle mainDevice; |
| 3029 | 3026 | MenuItemIndex menuIndex; |
| 3030 | 3027 | ControlButtonContentInfo content; |
| 3031 | 3028 | |
| r1213 | r1214 | |
| 3122 | 3119 | info->minwidth = 0; |
| 3123 | 3120 | info->maxwidth = 0; |
| 3124 | 3121 | for (cpunum = MAX_CPU - 1; (INT32)cpunum >= 0; cpunum--) |
| 3125 | | if (Machine->drv->cpu[cpunum].type != CPU_DUMMY) |
| 3122 | if (Machine->drv->cpu[cpunum].cpu_type != CPU_DUMMY) |
| 3126 | 3123 | { |
| 3127 | 3124 | UINT32 regchars, dischars, conchars; |
| 3128 | 3125 | UINT32 minwidth, maxwidth; |
| r1213 | r1214 | |
| 3146 | 3143 | } |
| 3147 | 3144 | |
| 3148 | 3145 | // get the work bounds |
| 3149 | | HIWindowGetAvailablePositioningBounds( mainID, kHICoordSpaceScreenPixel, &mainBounds ); |
| 3150 | | work_bounds.left = mainBounds.origin.x; |
| 3151 | | work_bounds.top = mainBounds.origin.y; |
| 3152 | | work_bounds.right = mainBounds.origin.x + mainBounds.size.width; |
| 3153 | | work_bounds.bottom = mainBounds.origin.y + mainBounds.size.height; |
| 3146 | DMGetGDeviceByDisplayID((DisplayIDType)mainID, &mainDevice, TRUE); |
| 3147 | GetAvailableWindowPositioningBounds(mainDevice, &work_bounds); |
| 3154 | 3148 | |
| 3155 | 3149 | // adjust the min/max sizes for the window style |
| 3156 | 3150 | bounds.top = bounds.left = 0; |