mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
fix windows build scripts, add windows opus support
This commit is contained in:
@@ -2493,7 +2493,7 @@ void CWin32Surface::CreatePopup(VPANEL panel, bool minimised, bool showTaskbarIc
|
||||
plat->textureDC = NULL;
|
||||
|
||||
::SetBkMode(plat->hdc, TRANSPARENT);
|
||||
::SetWindowLong(plat->hwnd, GWL_USERDATA, (LONG)g_pIVgui->PanelToHandle(panel));
|
||||
::SetWindowLongPtr(plat->hwnd, GWLP_USERDATA, (LONG_PTR)g_pIVgui->PanelToHandle(panel));
|
||||
::SetTextAlign(plat->hdc, TA_LEFT | TA_TOP | TA_UPDATECP);
|
||||
|
||||
if (!((VPanel *)panel)->IsVisible() || panel == _embeddedPanel)
|
||||
@@ -2514,7 +2514,7 @@ void CWin32Surface::CreatePopup(VPANEL panel, bool minimised, bool showTaskbarIc
|
||||
else
|
||||
{
|
||||
// somehow getting added twice, fundamental problem
|
||||
_asm int 3;
|
||||
Assert(0);
|
||||
}
|
||||
|
||||
// hack, force a windows sound to be played
|
||||
@@ -2571,7 +2571,7 @@ void CWin32Surface::ReleasePanel(VPANEL panel)
|
||||
SetPanelVisible(panel, false);
|
||||
|
||||
// free all the windows/bitmap/DC handles we are using
|
||||
::SetWindowLong(plat->hwnd, GWL_USERDATA, (LONG)-1);
|
||||
::SetWindowLongPtr(plat->hwnd, GWLP_USERDATA, (LONG_PTR)-1);
|
||||
::SetWindowPos(plat->hwnd, HWND_BOTTOM, 0, 0, 1, 1, SWP_NOREDRAW|SWP_HIDEWINDOW);
|
||||
|
||||
// free the window context
|
||||
@@ -3721,7 +3721,7 @@ static LRESULT CALLBACK staticProc(HWND hwnd,UINT msg,WPARAM wparam,LPARAM lpara
|
||||
|
||||
if (staticSurfaceAvailable)
|
||||
{
|
||||
panel = g_pIVgui->HandleToPanel(::GetWindowLong(hwnd, GWL_USERDATA));
|
||||
panel = g_pIVgui->HandleToPanel((LONG)::GetWindowLongPtr(hwnd, GWLP_USERDATA));
|
||||
|
||||
if (panel)
|
||||
{
|
||||
|
||||
+3
-3
@@ -34,14 +34,14 @@ def build(bld):
|
||||
'vgui_key_translation.cpp',
|
||||
'VPanel.cpp',
|
||||
'VPanelWrapper.cpp',
|
||||
'keyrepeat.cpp'
|
||||
'keyrepeat.cpp',
|
||||
'../../public/tier0/memoverride.cpp'
|
||||
]
|
||||
|
||||
if bld.env.DEST_OS == 'win32':
|
||||
source += [
|
||||
'Surface.cpp',
|
||||
'System.cpp',
|
||||
'../../public/tier0/memoverride.cpp'
|
||||
'System.cpp'
|
||||
]
|
||||
else:
|
||||
source += [
|
||||
|
||||
Reference in New Issue
Block a user