| 230 | } |
| 231 | |
| 232 | static void CalculateBitmapPositions(HWND hwndDlg) |
| 233 | { |
| 234 | // calculate bitmaps positions relative to their groupboxes |
| 235 | RECT rect; |
| 236 | POINT pt; |
| 237 | GetWindowRect(GetDlgItem(hwndDlg, GRP_PPUVIEW_TABLES), &rect); |
| 238 | pt.x = rect.left; |
| 239 | pt.y = rect.top; |
| 240 | ScreenToClient(hwndDlg, &pt); |
| 241 | patternDestX = pt.x + PATTERNDESTX_BASE; |
| 242 | patternDestY = pt.y + PATTERNDESTY_BASE; |
| 243 | GetWindowRect(GetDlgItem(hwndDlg, LBL_PPUVIEW_PALETTES), &rect); |
| 244 | pt.x = rect.left; |
| 245 | pt.y = rect.top; |
| 246 | ScreenToClient(hwndDlg, &pt); |
| 247 | paletteDestX = pt.x + PALETTEDESTX_BASE; |
| 248 | paletteDestY = pt.y + PALETTEDESTY_BASE; |
| 249 | } |
| 250 | |
| 251 | static BOOL CALLBACK EnsurePixelSizeEnumWindowsProc(HWND hwnd, LPARAM lParam) |
| 252 | { |
no outgoing calls
no test coverage detected