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
July 2007
----- 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
3 participants
957 discussions
Start a n
N
ew thread
Peter Dons Tychsen : x11drv: Fix the special case where windows have WS_CHILD and WS_POPUP.
by Alexandre Julliard
25 Jul '07
25 Jul '07
Module: wine Branch: master Commit: d0b21abe81f9722defc4fc0cb7ca596f7815a220 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d0b21abe81f9722defc4fc0cb…
Author: Peter Dons Tychsen <donpedro(a)tdcadsl.dk> Date: Wed Jul 25 04:09:50 2007 +0200 x11drv: Fix the special case where windows have WS_CHILD and WS_POPUP. --- dlls/winex11.drv/window.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index be5d114..c571684 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -76,7 +76,7 @@ static inline BOOL is_window_managed( HWND hwnd ) if (ex_style & WS_EX_TRAYWINDOW) return TRUE; /* child windows are not managed */ style = GetWindowLongW( hwnd, GWL_STYLE ); - if (style & WS_CHILD) return FALSE; + if ((style & (WS_CHILD|WS_POPUP)) == WS_CHILD) return FALSE; /* windows with caption are managed */ if ((style & WS_CAPTION) == WS_CAPTION) return TRUE; /* tool windows are not managed */
1
0
0
0
Matt Jones : server: Only commit SetThreadPriority if new priority is correct.
by Alexandre Julliard
25 Jul '07
25 Jul '07
Module: wine Branch: master Commit: 6763742090f10d953f12d2e4a866f653f89ba529 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6763742090f10d953f12d2e4a…
Author: Matt Jones <mattj(a)google.com> Date: Tue Jul 24 13:23:56 2007 -0700 server: Only commit SetThreadPriority if new priority is correct. --- dlls/kernel32/tests/thread.c | 24 ++++++++++-------------- server/thread.c | 19 ++++++++++++++++++- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c index 9ba9242..38692d4 100644 --- a/dlls/kernel32/tests/thread.c +++ b/dlls/kernel32/tests/thread.c @@ -594,25 +594,21 @@ static VOID test_thread_priority(void) SetLastError(0xdeadbeef); rc = SetThreadPriority(curthread,min_priority-1); - todo_wine { - ok(rc == FALSE, "SetThreadPriority passed with a bad argument\n"); - ok(GetLastError() == ERROR_INVALID_PARAMETER, - "SetThreadPriority error %d, expected ERROR_INVALID_PARAMETER (87)\n", GetLastError()); - ok(GetThreadPriority(curthread)==min_priority, - "GetThreadPriority didn't return min_priority\n"); - } + ok(rc == FALSE, "SetThreadPriority passed with a bad argument\n"); + ok(GetLastError() == ERROR_INVALID_PARAMETER, + "SetThreadPriority error %d, expected ERROR_INVALID_PARAMETER (87)\n", GetLastError()); + ok(GetThreadPriority(curthread)==min_priority, + "GetThreadPriority didn't return min_priority\n"); SetThreadPriority(curthread,max_priority); SetLastError(0xdeadbeef); rc = SetThreadPriority(curthread,max_priority+1); - todo_wine { - ok(rc == FALSE, "SetThreadPriority passed with a bad argument\n"); - ok(GetLastError() == ERROR_INVALID_PARAMETER, - "SetThreadPriority error %d, expected ERROR_INVALID_PARAMETER (87)\n", GetLastError()); - ok(GetThreadPriority(curthread)==max_priority, - "GetThreadPriority didn't return max_priority\n"); - } + ok(rc == FALSE, "SetThreadPriority passed with a bad argument\n"); + ok(GetLastError() == ERROR_INVALID_PARAMETER, + "SetThreadPriority error %d, expected ERROR_INVALID_PARAMETER (87)\n", GetLastError()); + ok(GetThreadPriority(curthread)==max_priority, + "GetThreadPriority didn't return max_priority\n"); /* Check thread priority boost */ if (!pGetThreadPriorityBoost || !pSetThreadPriorityBoost) diff --git a/server/thread.c b/server/thread.c index 62d50b5..2ae78c9 100644 --- a/server/thread.c +++ b/server/thread.c @@ -383,12 +383,29 @@ struct thread *get_thread_from_pid( int pid ) return NULL; } +#define THREAD_PRIORITY_REALTIME_HIGHEST 6 +#define THREAD_PRIORITY_REALTIME_LOWEST -7 + /* set all information about a thread */ static void set_thread_info( struct thread *thread, const struct set_thread_info_request *req ) { if (req->mask & SET_THREAD_INFO_PRIORITY) - thread->priority = req->priority; + { + int max = THREAD_PRIORITY_HIGHEST; + int min = THREAD_PRIORITY_LOWEST; + if (thread->process->priority == PROCESS_PRIOCLASS_REALTIME) + { + max = THREAD_PRIORITY_REALTIME_HIGHEST; + min = THREAD_PRIORITY_REALTIME_LOWEST; + } + if ((req->priority >= min && req->priority <= max) || + req->priority == THREAD_PRIORITY_IDLE || + req->priority == THREAD_PRIORITY_TIME_CRITICAL) + thread->priority = req->priority; + else + set_error( STATUS_INVALID_PARAMETER ); + } if (req->mask & SET_THREAD_INFO_AFFINITY) { if (req->affinity != 1) set_error( STATUS_INVALID_PARAMETER );
1
0
0
0
Matt Jones : kernel32: Added test for bad arguments to SetThreadPriority, test for correct error value.
by Alexandre Julliard
25 Jul '07
25 Jul '07
Module: wine Branch: master Commit: f204ed1d192655d8443437266af937bd91fe11f1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f204ed1d192655d8443437266…
Author: Matt Jones <mattj(a)google.com> Date: Tue Jul 24 13:20:40 2007 -0700 kernel32: Added test for bad arguments to SetThreadPriority, test for correct error value. --- dlls/kernel32/tests/thread.c | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c index bbda00e..9ba9242 100644 --- a/dlls/kernel32/tests/thread.c +++ b/dlls/kernel32/tests/thread.c @@ -588,6 +588,32 @@ static VOID test_thread_priority(void) "GetThreadPriority Failed\n"); ok(SetThreadPriority(curthread,0)!=0,"SetThreadPriority Failed\n"); +/* Check that the thread priority is not changed if SetThreadPriority + is called with a value outside of the max/min range */ + SetThreadPriority(curthread,min_priority); + SetLastError(0xdeadbeef); + rc = SetThreadPriority(curthread,min_priority-1); + + todo_wine { + ok(rc == FALSE, "SetThreadPriority passed with a bad argument\n"); + ok(GetLastError() == ERROR_INVALID_PARAMETER, + "SetThreadPriority error %d, expected ERROR_INVALID_PARAMETER (87)\n", GetLastError()); + ok(GetThreadPriority(curthread)==min_priority, + "GetThreadPriority didn't return min_priority\n"); + } + + SetThreadPriority(curthread,max_priority); + SetLastError(0xdeadbeef); + rc = SetThreadPriority(curthread,max_priority+1); + + todo_wine { + ok(rc == FALSE, "SetThreadPriority passed with a bad argument\n"); + ok(GetLastError() == ERROR_INVALID_PARAMETER, + "SetThreadPriority error %d, expected ERROR_INVALID_PARAMETER (87)\n", GetLastError()); + ok(GetThreadPriority(curthread)==max_priority, + "GetThreadPriority didn't return max_priority\n"); + } + /* Check thread priority boost */ if (!pGetThreadPriorityBoost || !pSetThreadPriorityBoost) return; /* Win9x */
1
0
0
0
Evan Stade : gdiplus: Added GdipLoadImageFromStreamICM stub.
by Alexandre Julliard
25 Jul '07
25 Jul '07
Module: wine Branch: master Commit: 875a56ec398a42dd9576ae93b8b753e2f7091bf9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=875a56ec398a42dd9576ae93b…
Author: Evan Stade <estade(a)gmail.com> Date: Tue Jul 24 17:19:21 2007 -0700 gdiplus: Added GdipLoadImageFromStreamICM stub. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/image.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index d21fd80..74ba047 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -419,7 +419,7 @@ @ stub GdipLoadImageFromFile @ stub GdipLoadImageFromFileICM @ stub GdipLoadImageFromStream -@ stub GdipLoadImageFromStreamICM +@ stdcall GdipLoadImageFromStreamICM(ptr ptr) @ stub GdipMeasureCharacterRanges @ stub GdipMeasureDriverString @ stub GdipMeasureString diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 2bb4396..f7c56a3 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -16,8 +16,13 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include <stdarg.h> + #include "windef.h" +#include "winbase.h" #include "wingdi.h" +#include "objbase.h" + #include "gdiplus.h" #include "gdiplus_private.h" #include "wine/debug.h" @@ -128,3 +133,16 @@ GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage *image, return NotImplemented; } + +GpStatus WINGDIPAPI GdipLoadImageFromStreamICM(IStream* stream, GpImage **image) +{ + static int calls; + + if(!stream || !image) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +}
1
0
0
0
Evan Stade : gdiplus: Added GdipDisposeImage stub.
by Alexandre Julliard
25 Jul '07
25 Jul '07
Module: wine Branch: master Commit: fba5a59b610c7b1aa658ce597e44ccb148223f24 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fba5a59b610c7b1aa658ce597…
Author: Evan Stade <estade(a)gmail.com> Date: Tue Jul 24 17:19:18 2007 -0700 gdiplus: Added GdipDisposeImage stub. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/image.c | 13 +++++++++++++ include/gdiplusflat.h | 1 + 3 files changed, 15 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 5d2c3bd..d21fd80 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -140,7 +140,7 @@ @ stub GdipDeletePrivateFontCollection @ stub GdipDeleteRegion @ stub GdipDeleteStringFormat -@ stub GdipDisposeImage +@ stdcall GdipDisposeImage(ptr) @ stub GdipDisposeImageAttributes @ stdcall GdipDrawArc(ptr ptr long long long long long long) @ stub GdipDrawArcI diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 1ff0d49..2bb4396 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -24,6 +24,19 @@ WINE_DEFAULT_DEBUG_CHANNEL(gdiplus); +GpStatus WINGDIPAPI GdipDisposeImage(GpImage *image) +{ + static int calls; + + if(!image) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + GpStatus WINGDIPAPI GdipGetImageHeight(GpImage *image, UINT *height) { static int calls; diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index bfa2c41..816f32d 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -128,6 +128,7 @@ GpStatus WINGDIPAPI GdipCreateCustomLineCap(GpPath*,GpPath*,GpLineCap,REAL, GpCustomLineCap**); GpStatus WINGDIPAPI GdipDeleteCustomLineCap(GpCustomLineCap*); +GpStatus WINGDIPAPI GdipDisposeImage(GpImage*); GpStatus WINGDIPAPI GdipGetImageHeight(GpImage*,UINT*); GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage*,REAL*); GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage*,GUID*);
1
0
0
0
Evan Stade : gdiplus: Added GdipCreateMetafileFromWmf stub.
by Alexandre Julliard
25 Jul '07
25 Jul '07
Module: wine Branch: master Commit: 021997fa636391f8b694cec76cba783b1b1b70f4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=021997fa636391f8b694cec76…
Author: Evan Stade <estade(a)gmail.com> Date: Tue Jul 24 17:19:15 2007 -0700 gdiplus: Added GdipCreateMetafileFromWmf stub. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/graphics.c | 14 +++++++++++++ include/Makefile.in | 1 + include/gdiplus.h | 2 + include/gdiplusflat.h | 2 + include/gdiplusmetaheader.h | 44 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 64 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 52179ec..5d2c3bd 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -102,7 +102,7 @@ @ stdcall GdipCreateMetafileFromEmf(ptr long ptr) @ stub GdipCreateMetafileFromFile @ stub GdipCreateMetafileFromStream -@ stub GdipCreateMetafileFromWmf +@ stdcall GdipCreateMetafileFromWmf(ptr long ptr ptr) @ stub GdipCreateMetafileFromWmfFile @ stub GdipCreatePath2 @ stub GdipCreatePath2I diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index a29d3a1..f53ea4c 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -818,6 +818,20 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromEmf(HENHMETAFILE hemf, BOOL delete, return NotImplemented; } +GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE hwmf, BOOL delete, + GDIPCONST WmfPlaceableFileHeader * placeable, GpMetafile **metafile) +{ + static int calls; + + if(!hwmf || !metafile || !placeable) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics) { if(!graphics) return InvalidParameter; diff --git a/include/Makefile.in b/include/Makefile.in index 782e671..44ef893 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -169,6 +169,7 @@ SRCDIR_INCLUDES = \ gdiplusgpstubs.h \ gdiplusinit.h \ gdiplusmem.h \ + gdiplusmetaheader.h \ gdipluspixelformats.h \ gdiplustypes.h \ guiddef.h \ diff --git a/include/gdiplus.h b/include/gdiplus.h index e5da625..6b42093 100644 --- a/include/gdiplus.h +++ b/include/gdiplus.h @@ -32,6 +32,7 @@ namespace Gdiplus #include "gdiplusenums.h" #include "gdiplusinit.h" #include "gdipluspixelformats.h" +#include "gdiplusmetaheader.h" #include "gdiplusgpstubs.h" namespace DllExports @@ -48,6 +49,7 @@ namespace Gdiplus #include "gdiplusenums.h" #include "gdiplusinit.h" #include "gdipluspixelformats.h" +#include "gdiplusmetaheader.h" #include "gdiplusgpstubs.h" #include "gdiplusflat.h" diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 2df7b7c..bfa2c41 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -47,6 +47,8 @@ GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen*,GpLineCap); GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**); GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**); GpStatus WINGDIPAPI GdipCreateMetafileFromEmf(HENHMETAFILE,BOOL,GpMetafile**); +GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE,BOOL, + GDIPCONST WmfPlaceableFileHeader*,GpMetafile**); GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *); GpStatus WINGDIPAPI GdipDrawArc(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,REAL); GpStatus WINGDIPAPI GdipDrawBezier(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL, diff --git a/include/gdiplusmetaheader.h b/include/gdiplusmetaheader.h new file mode 100644 index 0000000..2b4adf6 --- /dev/null +++ b/include/gdiplusmetaheader.h @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2007 Google (Evan Stade) + * + * 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 + */ + +#ifndef _GDIPLUSMETAHEADER_H +#define _GDIPLUSMETAHEADER_H + +#include <pshpack2.h> + +typedef struct +{ + INT16 Left; + INT16 Top; + INT16 Right; + INT16 Bottom; +} PWMFRect16; + +typedef struct +{ + UINT32 Key; + INT16 Hmf; + PWMFRect16 BoundingBox; + INT16 Inch; + UINT32 Reserved; + INT16 Checksum; +} WmfPlaceableFileHeader; + +#include <poppack.h> + +#endif /* _GDIPLUSMETAHEADER_H */
1
0
0
0
Evan Stade : gdiplus: Added GdipGetImageType stub.
by Alexandre Julliard
25 Jul '07
25 Jul '07
Module: wine Branch: master Commit: 8770b6e8215d98fd0eb31189d639dc8044e3b621 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8770b6e8215d98fd0eb31189d…
Author: Evan Stade <estade(a)gmail.com> Date: Tue Jul 24 17:19:12 2007 -0700 gdiplus: Added GdipGetImageType stub. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/image.c | 13 +++++++++++++ include/gdiplusenums.h | 8 ++++++++ include/gdiplusflat.h | 1 + 4 files changed, 23 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index fa0560e..52179ec 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -280,7 +280,7 @@ @ stub GdipGetImagePixelFormat @ stdcall GdipGetImageRawFormat(ptr ptr) @ stub GdipGetImageThumbnail -@ stub GdipGetImageType +@ stdcall GdipGetImageType(ptr ptr) @ stdcall GdipGetImageVerticalResolution(ptr ptr) @ stdcall GdipGetImageWidth(ptr ptr) @ stdcall GdipGetInterpolationMode(ptr ptr) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 465ba0d..1ff0d49 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -63,6 +63,19 @@ GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage *image, GUID *format) return NotImplemented; } +GpStatus WINGDIPAPI GdipGetImageType(GpImage *image, ImageType *type) +{ + static int calls; + + if(!image || !type) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + GpStatus WINGDIPAPI GdipGetImageVerticalResolution(GpImage *image, REAL *res) { static int calls; diff --git a/include/gdiplusenums.h b/include/gdiplusenums.h index eb807ce..ac9de4b 100644 --- a/include/gdiplusenums.h +++ b/include/gdiplusenums.h @@ -157,6 +157,13 @@ enum MatrixOrder MatrixOrderAppend = 1 }; +enum ImageType +{ + ImageTypeUnknown, + ImageTypeBitmap, + ImageTypeMetafile +}; + #ifndef __cplusplus typedef enum Unit Unit; @@ -173,6 +180,7 @@ typedef enum PixelOffsetMode PixelOffsetMode; typedef enum DashCap DashCap; typedef enum DashStyle DashStyle; typedef enum MatrixOrder MatrixOrder; +typedef enum ImageType ImageType; #endif /* end of c typedefs */ diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 5614fa0..2df7b7c 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -129,6 +129,7 @@ GpStatus WINGDIPAPI GdipDeleteCustomLineCap(GpCustomLineCap*); GpStatus WINGDIPAPI GdipGetImageHeight(GpImage*,UINT*); GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage*,REAL*); GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage*,GUID*); +GpStatus WINGDIPAPI GdipGetImageType(GpImage*,ImageType*); GpStatus WINGDIPAPI GdipGetImageVerticalResolution(GpImage*,REAL*); GpStatus WINGDIPAPI GdipGetImageWidth(GpImage*,UINT*); GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage*,GDIPCONST GUID*,UINT*);
1
0
0
0
Evan Stade : gdiplus: Limit fixme output.
by Alexandre Julliard
25 Jul '07
25 Jul '07
Module: wine Branch: master Commit: b0acdb8389f9f52d89075d898d1ed342aa036dad URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b0acdb8389f9f52d89075d898…
Author: Evan Stade <estade(a)gmail.com> Date: Tue Jul 24 17:19:09 2007 -0700 gdiplus: Limit fixme output. --- dlls/gdiplus/graphics.c | 10 ++++++++-- dlls/gdiplus/pen.c | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index f024d7c..a29d3a1 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -1200,20 +1200,26 @@ GpStatus WINGDIPAPI GdipGetWorldTransform(GpGraphics *graphics, GpMatrix *matrix GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics *graphics, GraphicsState state) { + static int calls; + if(!graphics) return InvalidParameter; - FIXME("graphics state not implemented\n"); + if(!(calls++)) + FIXME("graphics state not implemented\n"); return NotImplemented; } GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics *graphics, GraphicsState *state) { + static int calls; + if(!graphics || !state) return InvalidParameter; - FIXME("graphics state not implemented\n"); + if(!(calls++)) + FIXME("graphics state not implemented\n"); return NotImplemented; } diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c index b088ac9..3026d52 100644 --- a/dlls/gdiplus/pen.c +++ b/dlls/gdiplus/pen.c @@ -29,6 +29,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(gdiplus); static DWORD gdip_to_gdi_dash(GpDashStyle dash) { + static int calls; + switch(dash){ case DashStyleSolid: return PS_SOLID; @@ -41,7 +43,8 @@ static DWORD gdip_to_gdi_dash(GpDashStyle dash) case DashStyleDashDotDot: return PS_DASHDOTDOT; case DashStyleCustom: - FIXME("DashStyleCustom not implemented\n"); + if(!(calls++)) + FIXME("DashStyleCustom not implemented\n"); return PS_SOLID; default: ERR("Not a member of GpDashStyle enumeration\n");
1
0
0
0
Evan Stade : gdiplus: Image getter stubs.
by Alexandre Julliard
25 Jul '07
25 Jul '07
Module: wine Branch: master Commit: 45c24bbef3e914aaf4ffae5baef896fa2c0db311 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=45c24bbef3e914aaf4ffae5ba…
Author: Evan Stade <estade(a)gmail.com> Date: Tue Jul 24 17:19:02 2007 -0700 gdiplus: Image getter stubs. --- dlls/gdiplus/Makefile.in | 1 + dlls/gdiplus/gdiplus.spec | 12 +++--- dlls/gdiplus/image.c | 104 +++++++++++++++++++++++++++++++++++++++++++++ include/gdiplusflat.h | 7 +++ 4 files changed, 118 insertions(+), 6 deletions(-) diff --git a/dlls/gdiplus/Makefile.in b/dlls/gdiplus/Makefile.in index c47b6a6..dc4e2e0 100644 --- a/dlls/gdiplus/Makefile.in +++ b/dlls/gdiplus/Makefile.in @@ -12,6 +12,7 @@ C_SRCS = \ gdiplus.c \ graphics.c \ graphicspath.c \ + image.c \ matrix.c \ pathiterator.c \ pen.c diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 5481670..fa0560e 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -273,16 +273,16 @@ @ stub GdipGetImageEncodersSize @ stub GdipGetImageFlags @ stub GdipGetImageGraphicsContext -@ stub GdipGetImageHeight -@ stub GdipGetImageHorizontalResolution +@ stdcall GdipGetImageHeight(ptr ptr) +@ stdcall GdipGetImageHorizontalResolution(ptr ptr) @ stub GdipGetImagePalette @ stub GdipGetImagePaletteSize @ stub GdipGetImagePixelFormat -@ stub GdipGetImageRawFormat +@ stdcall GdipGetImageRawFormat(ptr ptr) @ stub GdipGetImageThumbnail @ stub GdipGetImageType -@ stub GdipGetImageVerticalResolution -@ stub GdipGetImageWidth +@ stdcall GdipGetImageVerticalResolution(ptr ptr) +@ stdcall GdipGetImageWidth(ptr ptr) @ stdcall GdipGetInterpolationMode(ptr ptr) @ stub GdipGetLineBlend @ stub GdipGetLineBlendCount @@ -389,7 +389,7 @@ @ stdcall GdipGetWorldTransform(ptr ptr) @ stub GdipGraphicsClear @ stub GdipImageForceValidation -@ stub GdipImageGetFrameCount +@ stdcall GdipImageGetFrameCount(ptr ptr ptr) @ stub GdipImageGetFrameDimensionsCount @ stub GdipImageGetFrameDimensionsList @ stub GdipImageRotateFlip diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c new file mode 100644 index 0000000..465ba0d --- /dev/null +++ b/dlls/gdiplus/image.c @@ -0,0 +1,104 @@ +/* + * Copyright (C) 2007 Google (Evan Stade) + * + * 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 "windef.h" +#include "wingdi.h" +#include "gdiplus.h" +#include "gdiplus_private.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(gdiplus); + +GpStatus WINGDIPAPI GdipGetImageHeight(GpImage *image, UINT *height) +{ + static int calls; + + if(!image || !height) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + +GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage *image, REAL *res) +{ + static int calls; + + if(!image || !res) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + +GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage *image, GUID *format) +{ + static int calls; + + if(!image || !format) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + +GpStatus WINGDIPAPI GdipGetImageVerticalResolution(GpImage *image, REAL *res) +{ + static int calls; + + if(!image || !res) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + +GpStatus WINGDIPAPI GdipGetImageWidth(GpImage *image, UINT *width) +{ + static int calls; + + if(!image || !width) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + +GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage *image, + GDIPCONST GUID* dimensionID, UINT* count) +{ + static int calls; + + if(!image || !dimensionID || !count) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index e493df5..5614fa0 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -126,6 +126,13 @@ GpStatus WINGDIPAPI GdipCreateCustomLineCap(GpPath*,GpPath*,GpLineCap,REAL, GpCustomLineCap**); GpStatus WINGDIPAPI GdipDeleteCustomLineCap(GpCustomLineCap*); +GpStatus WINGDIPAPI GdipGetImageHeight(GpImage*,UINT*); +GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage*,REAL*); +GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage*,GUID*); +GpStatus WINGDIPAPI GdipGetImageVerticalResolution(GpImage*,REAL*); +GpStatus WINGDIPAPI GdipGetImageWidth(GpImage*,UINT*); +GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage*,GDIPCONST GUID*,UINT*); + #ifdef __cplusplus } #endif
1
0
0
0
Evan Stade : gdiplus: Added GdipCreateMetafileFromEmf stub.
by Alexandre Julliard
25 Jul '07
25 Jul '07
Module: wine Branch: master Commit: 5cc8c10e0e8930edbba5ec29603a1a17d02131b8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5cc8c10e0e8930edbba5ec296…
Author: Evan Stade <estade(a)gmail.com> Date: Tue Jul 24 17:19:05 2007 -0700 gdiplus: Added GdipCreateMetafileFromEmf stub. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/graphics.c | 14 ++++++++++++++ include/gdiplusflat.h | 1 + include/gdiplusgpstubs.h | 4 ++++ 4 files changed, 20 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 49732db..5481670 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -99,7 +99,7 @@ @ stub GdipCreateMatrix3 @ stub GdipCreateMatrix3I @ stdcall GdipCreateMatrix(ptr) -@ stub GdipCreateMetafileFromEmf +@ stdcall GdipCreateMetafileFromEmf(ptr long ptr) @ stub GdipCreateMetafileFromFile @ stub GdipCreateMetafileFromStream @ stub GdipCreateMetafileFromWmf diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 6c8f13e..f024d7c 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -804,6 +804,20 @@ GpStatus WINGDIPAPI GdipCreateFromHWND(HWND hwnd, GpGraphics **graphics) return Ok; } +GpStatus WINGDIPAPI GdipCreateMetafileFromEmf(HENHMETAFILE hemf, BOOL delete, + GpMetafile **metafile) +{ + static int calls; + + if(!hemf || !metafile) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics) { if(!graphics) return InvalidParameter; diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 1143195..e493df5 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -46,6 +46,7 @@ GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen*,GpLineCap); GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**); GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**); +GpStatus WINGDIPAPI GdipCreateMetafileFromEmf(HENHMETAFILE,BOOL,GpMetafile**); GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *); GpStatus WINGDIPAPI GdipDrawArc(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,REAL); GpStatus WINGDIPAPI GdipDrawBezier(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL, diff --git a/include/gdiplusgpstubs.h b/include/gdiplusgpstubs.h index 70da065..9d57648 100644 --- a/include/gdiplusgpstubs.h +++ b/include/gdiplusgpstubs.h @@ -29,6 +29,8 @@ class GpPath {}; class GpMatrix {}; class GpPathIterator {}; class GpCustomLineCap {}; +class GpImage {}; +class GpMetafile : public GpImage {}; #else /* end of c++ declarations */ @@ -40,6 +42,8 @@ typedef struct GpPath GpPath; typedef struct GpMatrix GpMatrix; typedef struct GpPathIterator GpPathIterator; typedef struct GpCustomLineCap GpCustomLineCap; +typedef struct GpImage GpImage; +typedef struct GpMetafile GpMetafile; #endif /* end of c declarations */
1
0
0
0
← Newer
1
...
22
23
24
25
26
27
28
...
96
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Results per page:
10
25
50
100
200