winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
January 2013
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
736 discussions
Start a n
N
ew thread
Ken Thomases : loader: On Mac, embed Info.plist in (__TEXT, __info_plist) section.
by Alexandre Julliard
08 Jan '13
08 Jan '13
Module: wine Branch: master Commit: c40a72223c9f13aa18d0d5cf7a8071618da6599e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c40a72223c9f13aa18d0d5cf7…
Author: Ken Thomases <ken(a)codeweavers.com> Date: Mon Jan 7 14:44:23 2013 -0600 loader: On Mac, embed Info.plist in (__TEXT, __info_plist) section. --- .gitignore | 1 + configure | 4 ++-- configure.ac | 4 ++-- loader/Makefile.in | 7 +++++-- loader/wine_info.plist.in | 26 ++++++++++++++++++++++++++ tools/make_makefiles | 1 + 6 files changed, 37 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index b565fab..f990f3e 100644 --- a/.gitignore +++ b/.gitignore @@ -274,6 +274,7 @@ loader/wine-installed loader/wine-preloader loader/wine64 loader/wine64-preloader +loader/wine_info.plist msg.pot po/*.mo programs/Makeprog.rules diff --git a/configure b/configure index ca5da34..5e62766 100755 --- a/configure +++ b/configure @@ -6567,10 +6567,10 @@ fi case $host_os in darwin11*) - LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000" + LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist" ;; *) - LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000" + LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist" ;; esac if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes" diff --git a/configure.ac b/configure.ac index c06e108..372bc06 100644 --- a/configure.ac +++ b/configure.ac @@ -732,9 +732,9 @@ case $host_os in AC_SUBST(CORESERVICESLIB,"-framework CoreServices") case $host_os in darwin11*) - AC_SUBST(LDEXECFLAGS,["-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"]) ;; + AC_SUBST(LDEXECFLAGS,["-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"]) ;; *) - AC_SUBST(LDEXECFLAGS,["-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"]) ;; + AC_SUBST(LDEXECFLAGS,["-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"]) ;; esac if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes" then diff --git a/loader/Makefile.in b/loader/Makefile.in index ecc20ab..3993fa3 100644 --- a/loader/Makefile.in +++ b/loader/Makefile.in @@ -39,12 +39,15 @@ LDEXECFLAGS = @LDEXECFLAGS@ wine-preloader wine64-preloader: preloader.o Makefile.in $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o $(LIBPORT) $(LDFLAGS) -$(MAIN_BINARY): main.o Makefile.in +$(MAIN_BINARY): main.o Makefile.in wine_info.plist $(CC) -o $@ $(LDEXECFLAGS) main.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_LOCAL) -wine-installed: main.o Makefile.in +wine-installed: main.o Makefile.in wine_info.plist $(CC) -o $@ $(LDEXECFLAGS) main.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS) $(LDRPATH_INSTALL) +wine_info.plist: wine_info.plist.in + LC_ALL=C sed -e 's,@PACKAGE_VERSION\@,@PACKAGE_VERSION@,g' $< >$@ || ($(RM) $@ && false) + $(EXTRA_BINARIES:%=__install__%): $(EXTRA_BINARIES) $(DESTDIR)$(bindir) dummy f=`expr $@ : '__install__\(.*\)'` && $(INSTALL_PROGRAM) $$f $(DESTDIR)$(bindir)/$$f diff --git a/loader/wine_info.plist.in b/loader/wine_info.plist.in new file mode 100644 index 0000000..aea99e5 --- /dev/null +++ b/loader/wine_info.plist.in @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd
"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>English</string> + <key>CFBundleExecutable</key> + <string>wine</string> + <key>CFBundleIdentifier</key> + <string>org.winehq.wine</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleName</key> + <string>Wine</string> + <key>CFBundlePackageType</key> + <string>APPL</string> + <key>CFBundleShortVersionString</key> + <string>@PACKAGE_VERSION@</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleVersion</key> + <string>@PACKAGE_VERSION@</string> + <key>NSPrincipalClass</key> + <string>WineApplication</string> +</dict> +</plist> diff --git a/tools/make_makefiles b/tools/make_makefiles index df798d7..be106c9 100755 --- a/tools/make_makefiles +++ b/tools/make_makefiles @@ -95,6 +95,7 @@ my @ignores = ( "*/*/tests/testlist.c", "include/config.h", "include/stamp-h", + "loader/wine_info.plist", "msg.pot", "po/*.mo", "programs/winetest/build.nfo",
1
0
0
0
Ken Thomases : libwine: Call the Mac Multi-Processing Services lib from the main thread first.
by Alexandre Julliard
08 Jan '13
08 Jan '13
Module: wine Branch: master Commit: 573436047e93aa911d1ec2a943127df31e61b0a5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=573436047e93aa911d1ec2a94…
Author: Ken Thomases <ken(a)codeweavers.com> Date: Mon Jan 7 14:43:31 2013 -0600 libwine: Call the Mac Multi-Processing Services lib from the main thread first. --- libs/wine/Makefile.in | 2 +- libs/wine/loader.c | 22 ++++++++++++++++------ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in index ca93d26..a86e73b 100644 --- a/libs/wine/Makefile.in +++ b/libs/wine/Makefile.in @@ -1,7 +1,7 @@ DLLFLAGS = @DLLFLAGS@ MODULE = libwine.$(LIBEXT) VERSCRIPT = $(srcdir)/wine.map -EXTRALIBS = $(LIBPORT) @LIBDL@ @CRTLIBS@ @COREFOUNDATIONLIB@ +EXTRALIBS = $(LIBPORT) @LIBDL@ @CRTLIBS@ @COREFOUNDATIONLIB@ @CORESERVICESLIB@ DEFS = -D__WINESRC__ -DWINE_UNICODE_API="" VERSION = 1.0 diff --git a/libs/wine/loader.c b/libs/wine/loader.c index df0a6b5..9681381 100644 --- a/libs/wine/loader.c +++ b/libs/wine/loader.c @@ -39,21 +39,26 @@ # include <unistd.h> #endif -#define NONAMELESSUNION -#define NONAMELESSSTRUCT -#include "windef.h" -#include "winbase.h" -#include "wine/library.h" - #ifdef __APPLE__ #include <crt_externs.h> #define environ (*_NSGetEnviron()) #include <CoreFoundation/CoreFoundation.h> +#define LoadResource MacLoadResource +#define GetCurrentThread MacGetCurrentThread +#include <CoreServices/CoreServices.h> +#undef LoadResource +#undef GetCurrentThread #include <pthread.h> #else extern char **environ; #endif +#define NONAMELESSUNION +#define NONAMELESSSTRUCT +#include "windef.h" +#include "winbase.h" +#include "wine/library.h" + /* argc/argv for the Windows application */ int __wine_main_argc = 0; char **__wine_main_argv = NULL; @@ -756,6 +761,11 @@ static void apple_main_thread( void (*init_func)(void) ) CFRunLoopSourceContext source_context = { 0 }; CFRunLoopSourceRef source; + /* Multi-processing Services can get confused about the main thread if the + * first time it's used is on a secondary thread. Use it here to make sure + * that doesn't happen. */ + MPTaskIsPreemptive(MPCurrentTaskID()); + /* Give ourselves the best chance of having the distributed notification * center scheduled on this thread's run loop. In theory, it's scheduled * in the first thread to ask for it. */
1
0
0
0
Ken Thomases : winemac: Implement CreateDesktopWindow().
by Alexandre Julliard
08 Jan '13
08 Jan '13
Module: wine Branch: master Commit: bbb8c60c7effcf1a1bab3256bf7b718dc082e0f3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bbb8c60c7effcf1a1bab3256b…
Author: Ken Thomases <ken(a)codeweavers.com> Date: Mon Jan 7 14:43:21 2013 -0600 winemac: Implement CreateDesktopWindow(). --- dlls/winemac.drv/Makefile.in | 3 +- dlls/winemac.drv/gdi.c | 2 +- dlls/winemac.drv/macdrv.h | 9 ++++- dlls/winemac.drv/window.c | 73 +++++++++++++++++++++++++++++++++++++ dlls/winemac.drv/winemac.drv.spec | 1 + 5 files changed, 85 insertions(+), 3 deletions(-) diff --git a/dlls/winemac.drv/Makefile.in b/dlls/winemac.drv/Makefile.in index 08a5440..2082b37 100644 --- a/dlls/winemac.drv/Makefile.in +++ b/dlls/winemac.drv/Makefile.in @@ -5,7 +5,8 @@ EXTRALIBS = -framework AppKit C_SRCS = \ display.c \ gdi.c \ - macdrv_main.c + macdrv_main.c \ + window.c OBJC_SRCS = \ cocoa_display.m diff --git a/dlls/winemac.drv/gdi.c b/dlls/winemac.drv/gdi.c index 176b588..333cb0c 100644 --- a/dlls/winemac.drv/gdi.c +++ b/dlls/winemac.drv/gdi.c @@ -99,7 +99,7 @@ static DWORD get_dpi(void) * * Returns the rectangle encompassing all the screens. */ -static CGRect macdrv_get_desktop_rect(void) +CGRect macdrv_get_desktop_rect(void) { CGRect ret; CGDirectDisplayID displayIDs[32]; diff --git a/dlls/winemac.drv/macdrv.h b/dlls/winemac.drv/macdrv.h index 6b52ff1..2382809 100644 --- a/dlls/winemac.drv/macdrv.h +++ b/dlls/winemac.drv/macdrv.h @@ -3,7 +3,7 @@ * * Copyright 1996 Alexandre Julliard * Copyright 1999 Patrik Stridvall - * Copyright 2011, 2012 Ken Thomases for CodeWeavers Inc. + * Copyright 2011, 2012, 2013 Ken Thomases for CodeWeavers Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -63,4 +63,11 @@ static inline const char *wine_dbgstr_cgrect(CGRect cgrect) } +/************************************************************************** + * Mac GDI driver + */ + +extern CGRect macdrv_get_desktop_rect(void) DECLSPEC_HIDDEN; + + #endif /* __WINE_MACDRV_H */ diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c new file mode 100644 index 0000000..a374742 --- /dev/null +++ b/dlls/winemac.drv/window.c @@ -0,0 +1,73 @@ +/* + * MACDRV windowing driver + * + * Copyright 1993, 1994, 1995, 1996, 2001 Alexandre Julliard + * Copyright 1993 David Metcalfe + * Copyright 1995, 1996 Alex Korobka + * Copyright 2011, 2012, 2013 Ken Thomases for CodeWeavers Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "config.h" + +#include "macdrv.h" +#include "winuser.h" +#include "wine/server.h" + +WINE_DEFAULT_DEBUG_CHANNEL(macdrv); + + +/********************************************************************** + * CreateDesktopWindow (MACDRV.@) + */ +BOOL CDECL macdrv_CreateDesktopWindow(HWND hwnd) +{ + unsigned int width, height; + + TRACE("%p\n", hwnd); + + /* retrieve the real size of the desktop */ + SERVER_START_REQ(get_window_rectangles) + { + req->handle = wine_server_user_handle(hwnd); + req->relative = COORDS_CLIENT; + wine_server_call(req); + width = reply->window.right; + height = reply->window.bottom; + } + SERVER_END_REQ; + + if (!width && !height) /* not initialized yet */ + { + CGRect rect = macdrv_get_desktop_rect(); + + SERVER_START_REQ(set_window_pos) + { + req->handle = wine_server_user_handle(hwnd); + req->previous = 0; + req->swp_flags = SWP_NOZORDER; + req->window.left = CGRectGetMinX(rect); + req->window.top = CGRectGetMinY(rect); + req->window.right = CGRectGetMaxX(rect); + req->window.bottom = CGRectGetMaxY(rect); + req->client = req->window; + wine_server_call(req); + } + SERVER_END_REQ; + } + + return TRUE; +} diff --git a/dlls/winemac.drv/winemac.drv.spec b/dlls/winemac.drv/winemac.drv.spec index 03fa490..7bea2e8c 100644 --- a/dlls/winemac.drv/winemac.drv.spec +++ b/dlls/winemac.drv/winemac.drv.spec @@ -4,5 +4,6 @@ # USER driver +@ cdecl CreateDesktopWindow(long) macdrv_CreateDesktopWindow @ cdecl EnumDisplayMonitors(long ptr ptr long) macdrv_EnumDisplayMonitors @ cdecl GetMonitorInfo(long ptr) macdrv_GetMonitorInfo
1
0
0
0
Henri Verbeet : d3d8/tests: Merge volume.c into device.c.
by Alexandre Julliard
08 Jan '13
08 Jan '13
Module: wine Branch: master Commit: 00ef7a52850126fcf83066078c2766706e44c947 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=00ef7a52850126fcf83066078…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Jan 8 09:53:19 2013 +0100 d3d8/tests: Merge volume.c into device.c. --- dlls/d3d8/tests/Makefile.in | 3 +- dlls/d3d8/tests/device.c | 89 +++++++++++++++++++++++++ dlls/d3d8/tests/volume.c | 154 ------------------------------------------- 3 files changed, 90 insertions(+), 156 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=00ef7a52850126fcf8306…
1
0
0
0
Henri Verbeet : d3d8/tests: Merge d3d8_main.c into device.c.
by Alexandre Julliard
08 Jan '13
08 Jan '13
Module: wine Branch: master Commit: 9dbf059c75ab5724c5e1aa3dabf88ffffdc213d1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9dbf059c75ab5724c5e1aa3da…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Jan 8 09:53:18 2013 +0100 d3d8/tests: Merge d3d8_main.c into device.c. --- dlls/d3d8/tests/Makefile.in | 1 - dlls/d3d8/tests/d3d8_main.c | 119 ------------------------------------------- dlls/d3d8/tests/device.c | 95 ++++++++++++++++++++++++++++++++++ 3 files changed, 95 insertions(+), 120 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=9dbf059c75ab5724c5e1a…
1
0
0
0
Henri Verbeet : ddraw: Cleanup ddraw7_QueryInterface() a bit.
by Alexandre Julliard
08 Jan '13
08 Jan '13
Module: wine Branch: master Commit: 6ba9f27c16602b6410d8b146215bf2756af7e6f1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6ba9f27c16602b6410d8b1462…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Jan 8 09:53:17 2013 +0100 ddraw: Cleanup ddraw7_QueryInterface() a bit. --- dlls/ddraw/ddraw.c | 150 ++++++++++++++++----------------------------------- 1 files changed, 47 insertions(+), 103 deletions(-) diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c index 205bf5d..e88f67e 100644 --- a/dlls/ddraw/ddraw.c +++ b/dlls/ddraw/ddraw.c @@ -119,134 +119,78 @@ static inline struct ddraw *impl_from_IDirect3D7(IDirect3D7 *iface) return CONTAINING_RECORD(iface, struct ddraw, IDirect3D7_iface); } -/***************************************************************************** - * IUnknown Methods - *****************************************************************************/ - -/***************************************************************************** - * IDirectDraw7::QueryInterface - * - * Queries different interfaces of the DirectDraw object. It can return - * IDirectDraw interfaces in version 1, 2, 4 and 7, and IDirect3D interfaces - * in version 1, 2, 3 and 7. An IDirect3DDevice can be created with this - * method. - * The returned interface is AddRef()-ed before it's returned - * - * Used for version 1, 2, 4 and 7 - * - * Params: - * refiid: Interface ID asked for - * obj: Used to return the interface pointer - * - * Returns: - * S_OK if an interface was found - * E_NOINTERFACE if the requested interface wasn't found - * - *****************************************************************************/ -static HRESULT WINAPI ddraw7_QueryInterface(IDirectDraw7 *iface, REFIID refiid, void **obj) +static HRESULT WINAPI ddraw7_QueryInterface(IDirectDraw7 *iface, REFIID riid, void **out) { - struct ddraw *This = impl_from_IDirectDraw7(iface); - - TRACE("iface %p, riid %s, object %p.\n", iface, debugstr_guid(refiid), obj); - - /* Can change surface impl type */ - wined3d_mutex_lock(); + struct ddraw *ddraw = impl_from_IDirectDraw7(iface); - /* According to COM docs, if the QueryInterface fails, obj should be set to NULL */ - *obj = NULL; + TRACE("iface %p, riid %s, out %p.\n", iface, debugstr_guid(riid), out); - if(!refiid) + if (!riid) { - wined3d_mutex_unlock(); + *out = NULL; return DDERR_INVALIDPARAMS; } - /* Check DirectDraw Interfaces */ - if ( IsEqualGUID( &IID_IUnknown, refiid ) || - IsEqualGUID( &IID_IDirectDraw7, refiid ) ) + /* The refcount unit test revealed that an IDirect3D7 interface can only + * be queried from a DirectDraw object that was created as an IDirectDraw7 + * interface. The older interfaces can query any IDirect3D version except + * 7, because they are all initially created as IDirectDraw. This isn't + * really crucial behavior, and messy to implement with the common + * creation function, so it has been left out here. */ + if (IsEqualGUID(&IID_IDirectDraw7, riid) + || IsEqualGUID(&IID_IUnknown, riid)) { - *obj = &This->IDirectDraw7_iface; - TRACE("(%p) Returning IDirectDraw7 interface at %p\n", This, *obj); + *out = &ddraw->IDirectDraw7_iface; + TRACE("Returning IDirectDraw7 interface %p.\n", *out); } - else if ( IsEqualGUID( &IID_IDirectDraw4, refiid ) ) + else if (IsEqualGUID(&IID_IDirectDraw4, riid)) { - *obj = &This->IDirectDraw4_iface; - TRACE("(%p) Returning IDirectDraw4 interface at %p\n", This, *obj); + *out = &ddraw->IDirectDraw4_iface; + TRACE("Returning IDirectDraw4 interface %p.\n", *out); } - else if ( IsEqualGUID( &IID_IDirectDraw3, refiid ) ) + else if (IsEqualGUID(&IID_IDirectDraw2, riid)) { - /* This Interface exists in ddrawex.dll, it is implemented in a wrapper */ - WARN("IDirectDraw3 is not valid in ddraw.dll\n"); - *obj = NULL; - wined3d_mutex_unlock(); - return E_NOINTERFACE; + *out = &ddraw->IDirectDraw2_iface; + TRACE("Returning IDirectDraw2 interface %p.\n", *out); } - else if ( IsEqualGUID( &IID_IDirectDraw2, refiid ) ) + else if (IsEqualGUID(&IID_IDirectDraw, riid)) { - *obj = &This->IDirectDraw2_iface; - TRACE("(%p) Returning IDirectDraw2 interface at %p\n", This, *obj); + *out = &ddraw->IDirectDraw_iface; + TRACE("Returning IDirectDraw interface %p.\n", *out); } - else if ( IsEqualGUID( &IID_IDirectDraw, refiid ) ) + else if (IsEqualGUID(&IID_IDirect3D7, riid)) { - *obj = &This->IDirectDraw_iface; - TRACE("(%p) Returning IDirectDraw interface at %p\n", This, *obj); + ddraw->d3dversion = 7; + *out = &ddraw->IDirect3D7_iface; + TRACE("Returning Direct3D7 interface %p.\n", *out); } - - /* Direct3D - * The refcount unit test revealed that an IDirect3D7 interface can only be queried - * from a DirectDraw object that was created as an IDirectDraw7 interface. No idea - * who had this idea and why. The older interfaces can query and IDirect3D version - * because they are all created as IDirectDraw(1). This isn't really crucial behavior, - * and messy to implement with the common creation function, so it has been left out here. - */ - else if ( IsEqualGUID( &IID_IDirect3D , refiid ) || - IsEqualGUID( &IID_IDirect3D2 , refiid ) || - IsEqualGUID( &IID_IDirect3D3 , refiid ) || - IsEqualGUID( &IID_IDirect3D7 , refiid ) ) + else if (IsEqualGUID(&IID_IDirect3D3, riid)) { - /* Check the surface implementation */ - if (DefaultSurfaceType != WINED3D_SURFACE_TYPE_OPENGL) - { - WARN("The app requests a Direct3D interface, but non-opengl surfaces where set in winecfg\n"); - /* Do not abort here, only reject 3D Device creation */ - } - - if ( IsEqualGUID( &IID_IDirect3D , refiid ) ) - { - This->d3dversion = 1; - *obj = &This->IDirect3D_iface; - TRACE(" returning Direct3D interface at %p.\n", *obj); - } - else if ( IsEqualGUID( &IID_IDirect3D2 , refiid ) ) - { - This->d3dversion = 2; - *obj = &This->IDirect3D2_iface; - TRACE(" returning Direct3D2 interface at %p.\n", *obj); - } - else if ( IsEqualGUID( &IID_IDirect3D3 , refiid ) ) - { - This->d3dversion = 3; - *obj = &This->IDirect3D3_iface; - TRACE(" returning Direct3D3 interface at %p.\n", *obj); - } - else if(IsEqualGUID( &IID_IDirect3D7 , refiid )) - { - This->d3dversion = 7; - *obj = &This->IDirect3D7_iface; - TRACE(" returning Direct3D7 interface at %p.\n", *obj); - } + ddraw->d3dversion = 3; + *out = &ddraw->IDirect3D3_iface; + TRACE("Returning Direct3D3 interface %p.\n", *out); + } + else if (IsEqualGUID(&IID_IDirect3D2, riid)) + { + ddraw->d3dversion = 2; + *out = &ddraw->IDirect3D2_iface; + TRACE("Returning Direct3D2 interface %p.\n", *out); + } + else if (IsEqualGUID(&IID_IDirect3D, riid)) + { + ddraw->d3dversion = 1; + *out = &ddraw->IDirect3D_iface; + TRACE("Returning Direct3D interface %p.\n", *out); } /* Unknown interface */ else { - ERR("(%p)->(%s, %p): No interface found\n", This, debugstr_guid(refiid), obj); - wined3d_mutex_unlock(); + WARN("%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid(riid)); + *out = NULL; return E_NOINTERFACE; } - IUnknown_AddRef( (IUnknown *) *obj ); - wined3d_mutex_unlock(); - + IUnknown_AddRef((IUnknown *)*out); return S_OK; }
1
0
0
0
Henri Verbeet : ddraw: Avoid LPD3DLIGHTINGELEMENT.
by Alexandre Julliard
08 Jan '13
08 Jan '13
Module: wine Branch: master Commit: 09bad83c3a58a3f47bb853eeaeaeeb3ea25aff7a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=09bad83c3a58a3f47bb853eea…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Jan 8 09:53:16 2013 +0100 ddraw: Avoid LPD3DLIGHTINGELEMENT. --- include/d3dtypes.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/d3dtypes.h b/include/d3dtypes.h index 59ac720..73c389f 100644 --- a/include/d3dtypes.h +++ b/include/d3dtypes.h @@ -597,7 +597,7 @@ typedef struct _D3DLIGHT2 { typedef struct _D3DLIGHTDATA { DWORD dwSize; - LPD3DLIGHTINGELEMENT lpIn; + D3DLIGHTINGELEMENT *lpIn; DWORD dwInSize; D3DTLVERTEX *lpOut; DWORD dwOutSize;
1
0
0
0
Henri Verbeet : ddraw: Avoid LPD3DTRANSFORMDATA.
by Alexandre Julliard
08 Jan '13
08 Jan '13
Module: wine Branch: master Commit: 553745e3f2902af171fc8e4e0de78abc1a1d50a5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=553745e3f2902af171fc8e4e0…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Jan 8 09:53:15 2013 +0100 ddraw: Avoid LPD3DTRANSFORMDATA. --- include/d3d.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/d3d.h b/include/d3d.h index 322384a..8678560 100644 --- a/include/d3d.h +++ b/include/d3d.h @@ -655,7 +655,7 @@ DECLARE_INTERFACE_(IDirect3DViewport,IUnknown) STDMETHOD(Initialize)(THIS_ IDirect3D *d3d) PURE; STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT *data) PURE; STDMETHOD(SetViewport)(THIS_ D3DVIEWPORT *data) PURE; - STDMETHOD(TransformVertices)(THIS_ DWORD dwVertexCount, LPD3DTRANSFORMDATA lpData, DWORD dwFlags, LPDWORD lpOffScreen) PURE; + STDMETHOD(TransformVertices)(THIS_ DWORD vertex_count, D3DTRANSFORMDATA *data, DWORD flags, DWORD *offscreen) PURE; STDMETHOD(LightElements)(THIS_ DWORD dwElementCount, LPD3DLIGHTDATA lpData) PURE; STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE hMat) PURE; STDMETHOD(GetBackground)(THIS_ D3DMATERIALHANDLE *material, BOOL *valid) PURE; @@ -723,7 +723,7 @@ DECLARE_INTERFACE_(IDirect3DViewport2,IDirect3DViewport) STDMETHOD(Initialize)(THIS_ IDirect3D *d3d) PURE; STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT *data) PURE; STDMETHOD(SetViewport)(THIS_ D3DVIEWPORT *data) PURE; - STDMETHOD(TransformVertices)(THIS_ DWORD dwVertexCount, LPD3DTRANSFORMDATA lpData, DWORD dwFlags, LPDWORD lpOffScreen) PURE; + STDMETHOD(TransformVertices)(THIS_ DWORD vertex_count, D3DTRANSFORMDATA *data, DWORD flags, DWORD *offscreen) PURE; STDMETHOD(LightElements)(THIS_ DWORD dwElementCount, LPD3DLIGHTDATA lpData) PURE; STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE hMat) PURE; STDMETHOD(GetBackground)(THIS_ D3DMATERIALHANDLE *material, BOOL *valid) PURE; @@ -799,7 +799,7 @@ DECLARE_INTERFACE_(IDirect3DViewport3,IDirect3DViewport2) STDMETHOD(Initialize)(THIS_ IDirect3D *d3d) PURE; STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT *data) PURE; STDMETHOD(SetViewport)(THIS_ D3DVIEWPORT *data) PURE; - STDMETHOD(TransformVertices)(THIS_ DWORD dwVertexCount, LPD3DTRANSFORMDATA lpData, DWORD dwFlags, LPDWORD lpOffScreen) PURE; + STDMETHOD(TransformVertices)(THIS_ DWORD vertex_count, D3DTRANSFORMDATA *data, DWORD flags, DWORD *offscreen) PURE; STDMETHOD(LightElements)(THIS_ DWORD dwElementCount, LPD3DLIGHTDATA lpData) PURE; STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE hMat) PURE; STDMETHOD(GetBackground)(THIS_ D3DMATERIALHANDLE *material, BOOL *valid) PURE;
1
0
0
0
André Hentschel : netstat: Implement -e option.
by Alexandre Julliard
08 Jan '13
08 Jan '13
Module: wine Branch: master Commit: 7b53eac79f2cb532494d1744e8803e2a6d7e10a0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7b53eac79f2cb532494d1744e…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Mon Jan 7 23:30:37 2013 +0100 netstat: Implement -e option. --- po/ar.po | 36 ++++++++++++++++++++++++ po/bg.po | 40 +++++++++++++++++++++++++++ po/ca.po | 46 +++++++++++++++++++++++++++++++ po/cs.po | 41 ++++++++++++++++++++++++++++ po/da.po | 46 +++++++++++++++++++++++++++++++ po/de.po | 46 +++++++++++++++++++++++++++++++ po/el.po | 40 +++++++++++++++++++++++++++ po/en.po | 36 ++++++++++++++++++++++++ po/en_US.po | 36 ++++++++++++++++++++++++ po/eo.po | 44 ++++++++++++++++++++++++++++++ po/es.po | 46 +++++++++++++++++++++++++++++++ po/fa.po | 36 ++++++++++++++++++++++++ po/fi.po | 46 +++++++++++++++++++++++++++++++ po/fr.po | 46 +++++++++++++++++++++++++++++++ po/he.po | 43 +++++++++++++++++++++++++++++ po/hi.po | 36 ++++++++++++++++++++++++ po/hu.po | 46 +++++++++++++++++++++++++++++++ po/it.po | 46 +++++++++++++++++++++++++++++++ po/ja.po | 46 +++++++++++++++++++++++++++++++ po/ko.po | 46 +++++++++++++++++++++++++++++++ po/lt.po | 46 +++++++++++++++++++++++++++++++ po/ml.po | 36 ++++++++++++++++++++++++ po/nb_NO.po | 46 +++++++++++++++++++++++++++++++ po/nl.po | 46 +++++++++++++++++++++++++++++++ po/or.po | 36 ++++++++++++++++++++++++ po/pa.po | 36 ++++++++++++++++++++++++ po/pl.po | 46 +++++++++++++++++++++++++++++++ po/pt_BR.po | 46 +++++++++++++++++++++++++++++++ po/pt_PT.po | 46 +++++++++++++++++++++++++++++++ po/rm.po | 36 ++++++++++++++++++++++++ po/ro.po | 45 ++++++++++++++++++++++++++++++ po/ru.po | 46 +++++++++++++++++++++++++++++++ po/sk.po | 45 ++++++++++++++++++++++++++++++ po/sl.po | 46 +++++++++++++++++++++++++++++++ po/sr_RS(a)cyrillic.po | 42 ++++++++++++++++++++++++++++ po/sr_RS(a)latin.po | 42 ++++++++++++++++++++++++++++ po/sv.po | 46 +++++++++++++++++++++++++++++++ po/te.po | 36 ++++++++++++++++++++++++ po/th.po | 40 +++++++++++++++++++++++++++ po/tr.po | 44 ++++++++++++++++++++++++++++++ po/uk.po | 46 +++++++++++++++++++++++++++++++ po/wa.po | 36 ++++++++++++++++++++++++ po/wine.pot | 36 ++++++++++++++++++++++++ po/zh_CN.po | 44 ++++++++++++++++++++++++++++++ po/zh_TW.po | 46 +++++++++++++++++++++++++++++++ programs/netstat/netstat.c | 63 +++++++++++++++++++++++++++++++++++++++++++ programs/netstat/netstat.h | 9 ++++++ programs/netstat/netstat.rc | 9 ++++++ 48 files changed, 1989 insertions(+), 0 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=7b53eac79f2cb532494d1…
1
0
0
0
André Hentschel : netstat: Don' t translate strings only translated in German.
by Alexandre Julliard
08 Jan '13
08 Jan '13
Module: wine Branch: master Commit: 5263afdb6811317df0149578b502912136a41199 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5263afdb6811317df0149578b…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Mon Jan 7 23:27:55 2013 +0100 netstat: Don't translate strings only translated in German. --- po/ar.po | 56 +++--------------------------------------- po/bg.po | 56 +++--------------------------------------- po/ca.po | 56 +++--------------------------------------- po/cs.po | 56 +++--------------------------------------- po/da.po | 56 +++--------------------------------------- po/de.po | 56 +++--------------------------------------- po/el.po | 56 +++--------------------------------------- po/en.po | 56 +++--------------------------------------- po/en_US.po | 56 +++--------------------------------------- po/eo.po | 56 +++--------------------------------------- po/es.po | 56 +++--------------------------------------- po/fa.po | 56 +++--------------------------------------- po/fi.po | 56 +++--------------------------------------- po/fr.po | 56 +++--------------------------------------- po/he.po | 56 +++--------------------------------------- po/hi.po | 56 +++--------------------------------------- po/hu.po | 56 +++--------------------------------------- po/it.po | 56 +++--------------------------------------- po/ja.po | 56 +++--------------------------------------- po/ko.po | 56 +++--------------------------------------- po/lt.po | 56 +++--------------------------------------- po/ml.po | 56 +++--------------------------------------- po/nb_NO.po | 56 +++--------------------------------------- po/nl.po | 56 +++--------------------------------------- po/or.po | 56 +++--------------------------------------- po/pa.po | 56 +++--------------------------------------- po/pl.po | 56 +++--------------------------------------- po/pt_BR.po | 56 +++--------------------------------------- po/pt_PT.po | 56 +++--------------------------------------- po/rm.po | 56 +++--------------------------------------- po/ro.po | 56 +++--------------------------------------- po/ru.po | 56 +++--------------------------------------- po/sk.po | 56 +++--------------------------------------- po/sl.po | 56 +++--------------------------------------- po/sr_RS(a)cyrillic.po | 56 +++--------------------------------------- po/sr_RS(a)latin.po | 56 +++--------------------------------------- po/sv.po | 56 +++--------------------------------------- po/te.po | 56 +++--------------------------------------- po/th.po | 56 +++--------------------------------------- po/tr.po | 56 +++--------------------------------------- po/uk.po | 56 +++--------------------------------------- po/wa.po | 56 +++--------------------------------------- po/wine.pot | 56 +++--------------------------------------- po/zh_CN.po | 56 +++--------------------------------------- po/zh_TW.po | 56 +++--------------------------------------- programs/netstat/netstat.c | 18 +++++++++++++- programs/netstat/netstat.h | 23 ++++------------- programs/netstat/netstat.rc | 13 ---------- 48 files changed, 202 insertions(+), 2372 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=5263afdb6811317df0149…
1
0
0
0
← Newer
1
...
57
58
59
60
61
62
63
...
74
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Results per page:
10
25
50
100
200