Previous 15994 Revisions Next

r1097 Tuesday 9th October, 2007 at 12:54:07 UTC by Nathan Woods
1. [Windows GUI] Worked around bug #1389

2. [Windows GUI] x64 fixes [Oliver Stoeneberg and MAME32 team]
[src/osd/winui]directories.c help.c properties.c win32ui.c

src/osd/winui/win32ui.c
r1096r1097
12211221   int nLeftWindowWidth = 0;
12221222   RECT rect;
12231223   BOOL bVisible;
1224   int nLastOverlap = -1;
12241225
12251226   /* Size the List Control in the Picker */
12261227   GetClientRect(hMain, &rect);
r1096r1097
12451246            nLeftWindowWidth = rect.right - nLastWidth;
12461247
12471248         /* woah?  are we overlapping ourselves? */
1248         if (nLeftWindowWidth < MIN_VIEW_WIDTH)
1249         if ((nLeftWindowWidth < MIN_VIEW_WIDTH) && (i != nLastOverlap))
12491250         {
1251            nLastOverlap = i;
12501252            nLastWidth = nLastWidth2;
12511253            nLeftWindowWidth = nSplitterOffset[i] - MIN_VIEW_WIDTH - (SPLITTER_WIDTH*3/2) - nLastWidth;
12521254            i--;
r1096r1097
54805482      }
54815483
54825484   case WM_HELP:
5483      HelpFunction(((LPHELPINFO)lParam)->hItemHandle, MAME32CONTEXTHELP, HH_TP_HELP_WM_HELP, (DWORD)dwHelpIDs);
5485      HelpFunction(((LPHELPINFO)lParam)->hItemHandle, MAME32CONTEXTHELP, HH_TP_HELP_WM_HELP, (DWORD_PTR)dwHelpIDs);
54845486      break;
54855487
54865488   case WM_CONTEXTMENU:
5487      HelpFunction((HWND)wParam, MAME32CONTEXTHELP, HH_TP_HELP_CONTEXTMENU, (DWORD)dwHelpIDs);
5489      HelpFunction((HWND)wParam, MAME32CONTEXTHELP, HH_TP_HELP_CONTEXTMENU, (DWORD_PTR)dwHelpIDs);
54885490      break;
54895491
54905492   case WM_COMMAND:
src/osd/winui/directories.c
r1096r1097
729729   BOOL      bResult = FALSE;
730730   IMalloc*   piMalloc = 0;
731731   BROWSEINFO   Info;
732   ITEMIDLIST* pItemIDList = NULL;
732   LPITEMIDLIST pItemIDList = NULL;
733733   TCHAR      buf[MAX_PATH];
734734   
735735   if (!SUCCEEDED(SHGetMalloc(&piMalloc)))
src/osd/winui/help.c
r1096r1097
6060   g_hHelpLib  = NULL;
6161
6262   g_dwCookie = 0;
63   HelpFunction(NULL, NULL, HH_INITIALIZE, (DWORD)&g_dwCookie);
63   HelpFunction(NULL, NULL, HH_INITIALIZE, (DWORD_PTR)&g_dwCookie);
6464   return 0;
6565}
6666
src/osd/winui/properties.c
r1096r1097
327327   return g_nGame;
328328}
329329
330DWORD GetHelpIDs(void)
330DWORD_PTR GetHelpIDs(void)
331331{
332   return (DWORD) (LPSTR) dwHelpIDs;
332   return (DWORD_PTR)dwHelpIDs;
333333}
334334
335335// This function (and the code that use it) is a gross hack - but at least the vile

Previous 15994 Revisions Next


© 1998-2018 The MESS Team