mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-23 16:43:58 +08:00
check surface for GetVideoHandle
This commit is contained in:
+4
-1
@@ -3746,7 +3746,10 @@ MG_EXPORT BOOL GUIAPI IsWindowDC (HDC hdc)
|
||||
MG_EXPORT GHANDLE GetVideoHandle (HDC hdc)
|
||||
{
|
||||
PDC pdc = dc_HDC2PDC (hdc);
|
||||
return (GHANDLE)pdc->surface->video;
|
||||
if (pdc->surface)
|
||||
return (GHANDLE)pdc->surface->video;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef _MGGAL_DRM
|
||||
|
||||
Reference in New Issue
Block a user