MCPcopy Create free account
hub / github.com/TASEmulators/fceux / CalculateBitmapPositions

Function CalculateBitmapPositions

src/drivers/win/ppuview.cpp:232–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232static 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
251static BOOL CALLBACK EnsurePixelSizeEnumWindowsProc(HWND hwnd, LPARAM lParam)
252{

Callers 2

EnsurePixelSizeFunction · 0.70
PPUViewCallBFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected