Commit Graph

184 Commits

Author SHA1 Message Date
Alexandre Julliard cc743f8e6c oleaut32: Fix rendering of monochrome icons.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46308
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-20 18:34:39 +01:00
Michael Stefaniuc a1e0a029b0 oleaut32: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-29 22:01:39 +02:00
Dmitry Timoshkov 3dcd048175 oleaut32: Use common helper for masked bitmaps to render an icon.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-24 20:12:04 +02:00
Dmitry Timoshkov 293a679076 oleaut32: Move rendering a bitmap to a separate helper.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-24 20:12:04 +02:00
Dmitry Timoshkov e34d570b45 oleaut32: IPicture::set_hPal() supports only bitmaps.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-09 18:04:17 +02:00
Dmitry Timoshkov e5553bbd05 oleaut32: IPicture::get_hPal() supports only bitmaps.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-09 17:51:59 +02:00
Dmitry Timoshkov ee08f1cf5b oleaut32: Don't accept unsupported picture types in OleCreatePictureIndirect.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-09 17:51:46 +02:00
Nikolay Sivov 9e54ae767e oleaut32: Return proper interface pointers.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-08 16:00:58 +01:00
Michael Stefaniuc a3c5c50bdd oleaut32: Avoid casts from COM objects to interfaces.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-09 09:57:49 +09:00
Michael Stefaniuc 21db79044e oleaut32: Use wine_dbgstr_rect() to trace a RECT.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-20 21:51:57 +09:00
Austin English 5989664e0f oleaut32: Add OleLoadPictureFile stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-30 21:56:12 +09:00
Andrey Gusev 8bfc9bd2ee Assorted typos fixes.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 15:38:30 +09:00
Alexandre Julliard 28598cca7a Revert "oleaut32: Implement a better stub for IPicture::SaveAsFile."
This reverts commit 212dd9c226.
It's causing test failures in gdiplus. This will need to be redone
properly after 1.8.
2015-11-25 14:09:13 +09:00
Dmitry Timoshkov 212dd9c226 oleaut32: Implement a better stub for IPicture::SaveAsFile.
Based on OLEPictureImpl_Save implementation.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-25 01:28:32 +09:00
Bruno Jesus 2f9987fd04 oleaut32: Cope with invalid icon data in OLEPictureImpl_LoadIcon.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
2015-10-02 18:11:32 +09:00
Francois Gouget 4d65584f8a oleaut32: Remove unneeded NONAMELESSXXX directives. 2015-03-17 14:18:59 +09:00
Austin English 08f420d2de oleaut32: Add a stub for OleSavePictureFile. 2015-02-05 23:01:50 +09:00
Dmitry Timoshkov 5fc94f0adc oleaut32: Fix loading of an empty picture from a non-statable stream. 2014-04-10 13:55:06 +02:00
Nikolay Sivov bc50be98c9 oleaut32: Implement DISPID_PICT_RENDER dispid. 2014-03-03 17:02:26 +01:00
Michael Stefaniuc 4281d19d76 oleaut32: Cast to the correct type instead to void pointer. 2013-12-13 12:36:10 +01:00
Frédéric Delanoy 128e4575e5 oleaut32: Use BOOL type where appropriate. 2013-11-21 13:36:08 +01:00
Dmitry Timoshkov 724eda257f oleaut32: Check number of bytes returned by ReadFile. 2013-10-30 15:28:49 +01:00
Andrew Talbot eedf2f6fab oleaut32: Avoid signed-unsigned integer comparisons. 2013-02-22 10:17:32 +01:00
Dmitry Timoshkov 97e2c24cc7 oleaut32: Add support for saving an empty picture. 2012-11-26 12:01:40 +01:00
Dmitry Timoshkov de4c297cf7 oleaut32: Always write header to stream when saving an icon. 2012-06-01 16:11:29 +02:00
Dmitry Timoshkov 7493fdcc4d oleaut32: Simplify bitmap saving code. 2012-06-01 16:11:08 +02:00
Dmitry Timoshkov 4c88239742 oleaut32: Explicitly initialize idReserved field in the icon directory header. 2012-06-01 16:11:05 +02:00
Dmitry Timoshkov c1136218e2 oleaut32: Recognize icon and cursor in the being loaded data. 2012-06-01 16:11:01 +02:00
Dmitry Timoshkov dc7843590d oleaut32: OLEPictureImpl_Save should load bitmap data if it's not yet loaded. 2012-05-17 17:44:30 +02:00
Dmitry Timoshkov 25fd436db0 oleaut32: OleCreatePictureIndirect should set loadtime_format for a bitmap. 2012-05-17 17:44:29 +02:00
Dmitry Timoshkov 48df41f834 oleaut32: Move OLEPicture implementation into its own debug channel. 2012-05-17 17:44:29 +02:00
Daniel Jelinski 971a66e912 oleaut32: Added support for loading cursors in OLEPicture. 2012-05-07 11:42:19 +02:00
Alexandre Julliard 1e0ab16069 oleaut32: Fix IPicture::SelectPicture to not try to select a bitmap into two DCs at the same time. 2011-12-16 17:40:33 +01:00
Austin English af0c217752 oleaut32/tests: Fix a couple of todo_wine's. 2011-02-25 11:08:03 +01:00
Michael Stefaniuc 812a0495c5 oleaut32: Use ifaces instead of vtbl pointers in OLEPictureImpl. 2010-12-10 13:03:24 +01:00
Michael Stefaniuc e4094231a4 oleaut32: Use an iface instead of a vtbl pointer in IClassFactoryImpl. 2010-12-05 16:43:34 +01:00
Alexandre Julliard 7769b05858 oleaut32: Convert dll registration to the new IRegistrar mechanism. 2010-11-24 17:59:57 +01:00
Nikolay Sivov f7b2add8d9 oleaut32/olepicture: Remove out pointer check in OleCreatePictureIndirect, it should crash. 2010-08-25 11:59:27 +02:00
Nikolay Sivov b8f99cabb4 oleaut32/olepicture: Fix a typo in height conversion. 2010-08-25 11:59:06 +02:00
Nikolay Sivov b5a8c33182 oleaut32/olepicture: No need to check interface pointer in vtable methods. 2010-08-23 13:37:02 +02:00
Nikolay Sivov 32c2ef6c97 oleaut32/olepicture: Fix assumptions about S_OK value. 2010-08-23 13:37:02 +02:00
Nikolay Sivov 99863b02ba oleaut32/olepicture: Properly round while performing pixels->himetric units conversion. 2010-08-23 13:37:02 +02:00
Andrew Nguyen 96dbdcb8c9 oleaut32: Implicitly initialize COM in OleLoadPicturePath. 2010-05-20 16:48:37 +02:00
Andrew Nguyen 61f7f77636 oleaut32: Convert file URLs to DOS paths for special handling in OleLoadPicturePath.
File URLs cannot be used in the moniker code path, as binding to the IStream interface is not possible.
2010-05-20 16:48:37 +02:00
Andrew Nguyen dc13339988 oleaut32: Improve parameter validation in OleLoadPicturePath. 2010-05-20 16:48:37 +02:00
Gerald Pfeifer c85eb78090 oleaut32: Remove variable iLengthScanLineColor which is not really used from serializeIcon. 2010-05-03 16:48:03 +02:00
Mikhail Maroukhine feb257dce0 ole: Fix compiler warnings with flag -Wcast-qual. 2010-03-29 12:15:52 +02:00
Wilfried Pasquazzo 6a5bd0c2ed oleaut32: Respect size of icons when drawing with IPicture_Render. 2009-10-15 12:06:22 +02:00
Vincent Povirk e5d2a6932d oleaut32: Use WIC to decode PNG images. 2009-09-02 10:24:43 +02:00
Vincent Povirk 0ac2a855ce oleaut32: Use WIC to decode JPEG images. 2009-09-01 12:43:54 +02:00