diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2013-12-30 17:09:09 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2013-12-30 17:09:09 +0000 |
commit | 6d4f2be156c0dbab535a3082f9ceccc1ee27eeaf (patch) | |
tree | efe542f10a786cb2ee7078f6e719f79dd25cdaea | |
parent | 8a5af4c0870c64c4efc7a137a950b840fa145ec4 (diff) | |
parent | bafab18b87d3ef53a283b3ebe3c35eff2c04aa1e (diff) |
Merge branch 'cygwin-patches-for-1.14' into cygwin-release-1.14xserver-cygwin-1.14.5-1cygwin-release-1.14
-rwxr-xr-x | hw/xwin/XWin.exe.manifest | 14 | ||||
-rwxr-xr-x | hw/xwin/glx/gen_gl_wrappers.py | 45 | ||||
-rw-r--r-- | hw/xwin/winprocarg.c | 10 |
3 files changed, 36 insertions, 33 deletions
diff --git a/hw/xwin/XWin.exe.manifest b/hw/xwin/XWin.exe.manifest index 477334fb3..ea0e138f5 100755 --- a/hw/xwin/XWin.exe.manifest +++ b/hw/xwin/XWin.exe.manifest @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> - <description>The XWin X Windows server for Cygwin.</description> + <description>The XWin X Windows server</description> <dependency> <dependentAssembly> <assemblyIdentity @@ -18,4 +18,16 @@ <dpiAware>true</dpiAware> </asmv3:windowsSettings> </asmv3:application> + <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> + <application> + <!-- Windows Vista --> + <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> + <!-- Windows 7 --> + <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> + <!-- Windows 8 --> + <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/> + <!-- Windows 8.1 --> + <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/> + </application> + </compatibility> </assembly> diff --git a/hw/xwin/glx/gen_gl_wrappers.py b/hw/xwin/glx/gen_gl_wrappers.py index a97e0058b..c14cac44a 100755 --- a/hw/xwin/glx/gen_gl_wrappers.py +++ b/hw/xwin/glx/gen_gl_wrappers.py @@ -43,35 +43,18 @@ preresolve=False staticwrappers=False nodebugcallcounting=False -#exclude base WGL API -WinGDI={key: 1 for key in [ - "wglCopyContext" - ,"wglCreateContext" - ,"wglCreateLayerContext" - ,"wglDeleteContext" - ,"wglGetCurrentContext" - ,"wglGetCurrentDC" - ,"wglGetProcAddress" - ,"wglMakeCurrent" - ,"wglShareLists" - ,"wglUseFontBitmapsA" - ,"wglUseFontBitmapsW" - ,"wglUseFontBitmaps" - ,"SwapBuffers" - ,"wglUseFontOutlinesA" - ,"wglUseFontOutlinesW" - ,"wglUseFontOutlines" - ,"wglDescribeLayerPlane" - ,"wglSetLayerPaletteEntries" - ,"wglGetLayerPaletteEntries" - ,"wglRealizeLayerPalette" - ,"wglSwapLayerBuffers" - ,"wglSwapMultipleBuffers" - ,"ChoosePixelFormat" - ,"DescribePixelFormat" - ,"GetEnhMetaFilePixelFormat" - ,"GetPixelFormat" - ,"SetPixelFormat" +# list of WGL extension functions we use +used_wgl_ext_fns = {key: 1 for key in [ + "wglSwapIntervalEXT", + "wglGetExtensionsStringARB", + "wglDestroyPbufferARB", + "wglGetPbufferDCARB", + "wglReleasePbufferDCARB", + "wglCreatePbufferARB", + "wglMakeContextCurrentARB", + "wglChoosePixelFormatARB", + "wglGetPixelFormatAttribivARB", + "wglGetPixelFormatAttribivARB" ]} if __name__ == '__main__': @@ -191,7 +174,7 @@ class PreResolveOutputGenerator(OutputGenerator): def genCmd(self, cmd, name): OutputGenerator.genCmd(self, cmd, name) - if name in WinGDI: + if prefix == 'wgl' and not name in used_wgl_ext_fns: return self.outFile.write('RESOLVE_DECL(PFN' + name.upper() + 'PROC);\n') @@ -225,7 +208,7 @@ class WrapperOutputGenerator(OutputGenerator): self.outFile.write('/* No wrapper for ' + name + ', not in dispatch table */\n') return - if name in WinGDI: + if prefix == 'wgl' and not name in used_wgl_ext_fns: return self.wrappers[name]=1 diff --git a/hw/xwin/winprocarg.c b/hw/xwin/winprocarg.c index c91d8dc4d..bb6efc3da 100644 --- a/hw/xwin/winprocarg.c +++ b/hw/xwin/winprocarg.c @@ -1208,6 +1208,12 @@ winOS(void) if (osvi.dwMajorVersion <= 4) prodName = "Windows NT"; else if (osvi.dwMajorVersion == 6) { + if (osvi.dwMinorVersion == 3) { + if (osvi.wProductType == VER_NT_WORKSTATION) + prodName = "Windows 8.1"; + else + prodName = "Windows Server 2012 R2"; + } if (osvi.dwMinorVersion == 2) { if (osvi.wProductType == VER_NT_WORKSTATION) prodName = "Windows 8"; @@ -1229,7 +1235,9 @@ winOS(void) } else if (osvi.dwMajorVersion == 5) { if (osvi.dwMinorVersion == 2) { - if (GetSystemMetrics(SM_SERVERR2)) + if (osvi.wProductType == VER_NT_WORKSTATION) + prodName = "Windows XP x64 Edition"; + else if (GetSystemMetrics(SM_SERVERR2)) prodName = "Windows Server 2003 R2"; else prodName = "Windows Server 2003"; |