uses now REG_DISPx struct

This commit is contained in:
damdoum 2007-02-24 08:24:58 +00:00
parent d02b38ad4c
commit 485b27690f
1 changed files with 7 additions and 1 deletions

View File

@ -38,6 +38,7 @@ LRESULT MapView_OnPaint(mapview_struct * win, HWND hwnd, WPARAM wParam, LPARAM l
BITMAPV4HEADER bmi;
u16 lg;
u16 ht;
BGxPARMS * parms;
//CreateBitmapIndirect(&bmi);
memset(&bmi, 0, sizeof(bmi));
@ -100,7 +101,12 @@ LRESULT MapView_OnPaint(mapview_struct * win, HWND hwnd, WPARAM wParam, LPARAM l
sprintf(text, "%d x %d", (int)MainScreen.gpu->BGSize[win->map][0], (int)MainScreen.gpu->BGSize[win->map][1]);
SetWindowText(GetDlgItem(hwnd, IDC_MSIZE), text);
sprintf(text, "%d x %d", MainScreen.gpu->BGPC[win->map], MainScreen.gpu->BGPD[win->map]);
if (win->map==2) {
parms = &(MainScreen.gpu->dispx_st)->dispx_BG2PARMS;
} else {
parms = &(MainScreen.gpu->dispx_st)->dispx_BG3PARMS;
}
sprintf(text, "%d x %d", parms->BGxPC, parms->BGxPD);
SetWindowText(GetDlgItem(hwnd, IDC_SCROLL), text);
if(win->lcd)