Commit Graph

67 Commits

Author SHA1 Message Date
Alexandre Julliard 21a19fb4e3 uxtheme: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-25 08:36:46 +02:00
Michael Stefaniuc 93994dfc0b uxtheme: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-18 21:09:28 +02:00
Nikolay Sivov ce50a7ff4d uxtheme: Properly initialize text drawing options.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-14 09:05:57 +01:00
Hadrien Boizard 3155079e41 uxtheme: Use straight assignments instead of CopyRect().
Signed-off-by: Hadrien Boizard <h.boizard@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-08 19:22:50 +01:00
Nikolay Sivov 456211e307 uxtheme: Remove stub message for implemented functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-25 11:53:52 +02:00
Sebastian Lackner 461bfc64ba uxtheme: Return E_NOTIMPL in HRESULT stub functions.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 11:51:53 +09:00
Michael Stefaniuc 74a03b1adc uxtheme: Use straight assignments instead of CopyRect().
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-02 16:18:05 -05:00
Michael Stefaniuc 3c3fccacf0 uxtheme: Use wine_dbgstr_rect() to trace RECTs.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-21 18:42:21 +09:00
Nikolay Sivov 2bb581b9b7 uxtheme: Partial implementation of DrawThemeTextEx. 2015-07-02 13:43:43 +09:00
Mark Harmstone 2b650fa6db uxtheme: Resize source image if destination smaller than margins. 2015-04-15 22:21:57 +09:00
Mark Harmstone c6b4b4b93e uxtheme: Fix colour errors in UXTHEME_StretchBlt. 2015-04-09 14:56:34 +09:00
Mark Harmstone 8fa8a23684 uxtheme: Support images in GetThemeBackgroundRegion. 2015-03-17 00:20:01 +09:00
Mark Harmstone b12f73a591 uxtheme: Assume imagecount to be 1 if unspecified. 2015-03-06 20:31:57 +09:00
Frédéric Delanoy 5181b1c4b8 uxtheme: Use BOOL type where appropriate. 2013-10-14 10:44:37 +02:00
Alexandre Julliard 74f528eb28 uxtheme: Use the correct alpha for theme gradients. 2011-11-30 14:33:54 +01:00
Alexandre Julliard de3e06a745 uxtheme: Fix some pointer cast warnings on 64-bit. 2009-12-09 12:04:08 +01:00
Reece Dunn 5bc2785b72 uxtheme: Draw the correct part of the themed parent background to the DC. 2008-11-12 11:49:12 +01:00
Michael Stefaniuc 373f8ff103 uxtheme: Remove superflous casts. 2008-11-03 13:42:23 +01:00
Rob Shearman 739bdaeb86 uxtheme: SetPropW returns a BOOL not an HRESULT.
Therefore fix the code to handle SetPropW failing with this in mind.
(Found by PreFast.)
2008-09-30 10:20:10 -05:00
Andrew Talbot 471fb146a4 uxtheme: Remove unused variable. 2008-04-30 10:25:42 +02:00
Alex Villacís Lasso 4165a1f696 uxtheme: Skip creation of temporary bitmap when painting a single tile. 2008-04-24 11:49:08 +02:00
Alex Villacís Lasso 6a42264053 uxtheme: Fix nasty regression with painting of themed progress bar. 2008-04-24 11:48:58 +02:00
Austin English 6e59cd2c34 Spelling fixes. 2008-04-22 12:20:12 +02:00
Alex Villacís Lasso 1706d0d63e uxtheme: Speed up UXTHEME_SizedBlt in the ST_TILE by building an appropriately-sized memory bitmap out of the tile instead of iterating with UXTHEME_Blt() directly. 2008-04-22 12:03:14 +02:00
Andrew Talbot 7abeb20490 uxtheme: Assign to structs instead of using memcpy. 2008-03-20 14:27:34 +01:00
Marcus Meissner 3f726d3167 uxtheme: Fixed wrong index in draw.c. 2007-03-02 11:54:12 +01:00
Andrew Talbot 2bb44198b6 uxtheme: Declare some items static. 2007-02-05 12:32:42 +01:00
Francois Gouget 7a2bd72b8a uxtheme: winerror.h must not define the E_PROP_*_UNSUPPORTED macros. 2006-11-08 12:10:47 +01:00
Francois Gouget a7f8195be9 include: The PSDK does not have the A/W variants of MAKEINTATOM() so we should not either. 2006-11-08 12:10:26 +01:00
Michael Stefaniuc dc3706ae50 uxtheme: Win64 printf format warning fixes. 2006-10-09 12:55:53 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Francois Gouget 6d442aeb34 Assorted spelling fixes. 2005-11-23 20:14:43 +01:00
Frank Richter a18042e77f More elaborate IsThemeBackgroundPartiallyTransparent() implementation;
also returns TRUE for theme parts with 32bpp images.
2005-08-30 09:58:41 +00:00
Frank Richter 9a88d25ba4 Since theme images are reused now it's not really a good idea to
delete them in drawing functions.
2005-08-30 08:54:31 +00:00
Frank Richter 44b4c7459b Pass around what kind of transparency an image actually needs. Use
alpha-blending for 32bpp images.
2005-08-29 21:47:26 +00:00
Frank Richter e53a7639d7 If a MINSIZEn property is not present, fall back to actual size of nth
image to determine whether it is suitable.
2005-08-29 10:46:45 +00:00
Frank Richter 9a03000e5e Take a common computation out of two if-branches in
UXTHEME_LoadImage().
2005-08-29 10:15:59 +00:00
Frank Richter eed5b662b9 Implement "manual" image sharing(as opposed to using LoadImage() with
LR_SHARED) by keeping the loaded images in a list. This is needed for
proper alpha support later on since once-per-image preparations will
be needed then.
2005-08-29 09:30:17 +00:00
Frank Richter 6451a1495a Whatever TrueSizeStretchMark is for - it's not what Wine uxtheme used
it for. Native uxtheme always stretches "truesize" parts when the
destination is smaller than the part image size, but
TrueSizeStretchMark doesn't seem to have an influence.
2005-08-15 10:21:40 +00:00
Frank Richter 8ff3c7e623 Better computations to have uniformly sized parts scaled in both
directions.
2005-08-15 09:34:21 +00:00
Frank Richter 70442d5eb0 Implement DrawThemeEdge(). 2005-08-03 21:16:45 +00:00
Frank Richter aab700d16e Set some default values for truesize sizing that seem closer to
Windows.
2005-08-03 19:47:51 +00:00
Frank Richter 30fffdaef0 The default image layout is HORIZONTAL, not VERTICAL. 2005-08-03 19:13:01 +00:00
Frank Richter 635135ba3d Another fix to use magenta as the default transparent color. 2005-08-03 15:42:43 +00:00
Frank Richter 46c31adab2 Add support for horizontal & vertical alignment when doing truesize
sizing.
2005-08-03 14:54:28 +00:00
Frank Richter 1979ab3c2b Add support for the BT_NONE background type. 2005-08-03 12:32:59 +00:00
Frank Richter 50cd0e0232 Implement GetThemeBackgroundExtent(). 2005-08-03 11:45:02 +00:00
Frank Richter 59e5ce9d87 Implement support for the ST_TILE background stretching mode. 2005-08-03 10:55:40 +00:00
Frank Richter 3701cb2fa0 Implementation for GetThemePartSize() (not entirely equivalent to
native uxtheme, but sensibly useable).
2005-07-27 15:33:31 +00:00
Frank Richter 4d2e6b7d98 GetThemeBackgroundContentRect() does not use the content margins
alone, it also falls back to the border size or sizing margins, and if
it can't find any possible margins at all, it returns the original
rectangle.
2005-07-24 17:09:58 +00:00