Changeset 37273 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm
- Timestamp:
- May 31, 2011 11:44:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispDriver.cpp
r36867 r37273 111 111 }; 112 112 113 #ifdef VBOX_WITH_CROGL 114 typedef struct 115 { 116 DWORD dwVersion; 117 DWORD dwDriverVersion; 118 WCHAR szDriverName[256]; 119 } OPENGL_INFO, *POPENGL_INFO; 120 #endif 121 113 122 RT_C_DECLS_BEGIN 114 123 ULONG __cdecl DbgPrint(PCH pszFormat, ...) … … 864 873 switch (iEsc) 865 874 { 875 #ifdef VBOX_WITH_CROGL 876 case OPENGL_GETINFO: 877 { 878 if (pvOut && cjOut >= sizeof(OPENGL_INFO)) 879 { 880 POPENGL_INFO pInfo = (POPENGL_INFO)pvOut; 881 882 pInfo->dwVersion = 2; 883 pInfo->dwDriverVersion = 1; 884 pInfo->szDriverName[0] = 'V'; 885 pInfo->szDriverName[1] = 'B'; 886 pInfo->szDriverName[2] = 'o'; 887 pInfo->szDriverName[3] = 'x'; 888 pInfo->szDriverName[4] = 'O'; 889 pInfo->szDriverName[5] = 'G'; 890 pInfo->szDriverName[6] = 'L'; 891 pInfo->szDriverName[7] = 0; 892 893 LOG(("OPENGL_GETINFO ok")); 894 return cjOut; 895 } 896 else 897 { 898 WARN(("OPENGL_GETINFO invalid parms")); 899 return 0; 900 } 901 } 902 case QUERYESCSUPPORT: 903 { 904 if (pvIn && cjIn == sizeof(DWORD)) 905 { 906 DWORD nEscapeQuery = *(DWORD *)pvIn; 907 908 if (nEscapeQuery==OPENGL_GETINFO) 909 { 910 LOG(("QUERYESCSUPPORT OPENGL_GETINFO")); 911 return 1; 912 } 913 else 914 { 915 LOG(("QUERYESCSUPPORT unsupported query %d", nEscapeQuery)); 916 return 0; 917 } 918 } 919 else 920 { 921 WARN(("QUERYESCSUPPORT invalid parms")); 922 return 0; 923 } 924 } 925 #endif 866 926 case VBOXESC_ISVRDPACTIVE: 867 927 {
Note:
See TracChangeset
for help on using the changeset viewer.