Commit Graph

176 Commits

Author SHA1 Message Date
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
Vincent Povirk 5a5e0e937d oleaut32: Avoid copying the data when loading an image using WIC. 2009-08-24 15:17:34 +02:00
Vincent Povirk 7c9e198a71 oleaut32: Use WIC to decode gif files. 2009-08-19 12:08:32 +02:00
Alexandre Julliard 70e4611e73 oleaut32: Properly release cache DCs instead of trying to delete them. 2009-07-01 12:07:35 +02:00
Austin English 15ff349ada oleaut32: Fix a compiler warning for libjpeg includes. 2009-06-16 13:26:00 +02:00
Alexandre Julliard 0ed1041c63 oleaut32: Don't use 16-bit headers. 2009-04-01 18:20:21 +02:00
Michael Stefaniuc a3f8fd71e1 oleaut32: Remove superfluous pointer casts. 2009-02-09 14:37:23 +01:00
Erich Hoover a82cdfc050 oleaut32: Fix OLEPicture rendering vector metafiles without setting up the source rectangle. 2009-01-20 12:33:39 +01:00
Alexandre Julliard 99132baebd oleaut32: Fix handle cast warnings on 64-bit. 2009-01-08 17:27:14 +01:00