Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
25fd436d
Commit
25fd436d
authored
May 17, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: OleCreatePictureIndirect should set loadtime_format for a bitmap.
parent
48df41f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
olepicture.c
dlls/oleaut32/olepicture.c
+10
-11
No files found.
dlls/oleaut32/olepicture.c
View file @
25fd436d
...
@@ -68,6 +68,12 @@
...
@@ -68,6 +68,12 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
olepicture
);
WINE_DEFAULT_DEBUG_CHANNEL
(
olepicture
);
#define BITMAP_FORMAT_BMP 0x4d42
/* "BM" */
#define BITMAP_FORMAT_JPEG 0xd8ff
#define BITMAP_FORMAT_GIF 0x4947
#define BITMAP_FORMAT_PNG 0x5089
#define BITMAP_FORMAT_APM 0xcdd7
#include "pshpack1.h"
#include "pshpack1.h"
/* Header for Aldus Placable Metafiles - a standard metafile follows */
/* Header for Aldus Placable Metafiles - a standard metafile follows */
...
@@ -212,6 +218,8 @@ static void OLEPictureImpl_SetBitmap(OLEPictureImpl *This)
...
@@ -212,6 +218,8 @@ static void OLEPictureImpl_SetBitmap(OLEPictureImpl *This)
This
->
origWidth
=
bm
.
bmWidth
;
This
->
origWidth
=
bm
.
bmWidth
;
This
->
origHeight
=
bm
.
bmHeight
;
This
->
origHeight
=
bm
.
bmHeight
;
TRACE
(
"width %d, height %d, bpp %d
\n
"
,
bm
.
bmWidth
,
bm
.
bmHeight
,
bm
.
bmBitsPixel
);
/* The width and height are stored in HIMETRIC units (0.01 mm),
/* The width and height are stored in HIMETRIC units (0.01 mm),
so we take our pixel width divide by pixels per inch and
so we take our pixel width divide by pixels per inch and
multiply by 25.4 * 100 */
multiply by 25.4 * 100 */
...
@@ -222,6 +230,8 @@ static void OLEPictureImpl_SetBitmap(OLEPictureImpl *This)
...
@@ -222,6 +230,8 @@ static void OLEPictureImpl_SetBitmap(OLEPictureImpl *This)
This
->
himetricHeight
=
ypixels_to_himetric
(
bm
.
bmHeight
,
hdcRef
);
This
->
himetricHeight
=
ypixels_to_himetric
(
bm
.
bmHeight
,
hdcRef
);
This
->
stock_bitmap
=
GetCurrentObject
(
hdcRef
,
OBJ_BITMAP
);
This
->
stock_bitmap
=
GetCurrentObject
(
hdcRef
,
OBJ_BITMAP
);
This
->
loadtime_format
=
BITMAP_FORMAT_BMP
;
DeleteDC
(
hdcRef
);
DeleteDC
(
hdcRef
);
}
}
...
@@ -1322,17 +1332,6 @@ static HRESULT OLEPictureImpl_LoadAPM(OLEPictureImpl *This,
...
@@ -1322,17 +1332,6 @@ static HRESULT OLEPictureImpl_LoadAPM(OLEPictureImpl *This,
}
}
/************************************************************************
/************************************************************************
* BITMAP FORMAT FLAGS -
* Flags that differentiate between different types of bitmaps.
*/
#define BITMAP_FORMAT_BMP 0x4d42
/* "BM" */
#define BITMAP_FORMAT_JPEG 0xd8ff
#define BITMAP_FORMAT_GIF 0x4947
#define BITMAP_FORMAT_PNG 0x5089
#define BITMAP_FORMAT_APM 0xcdd7
/************************************************************************
* OLEPictureImpl_IPersistStream_Load (IUnknown)
* OLEPictureImpl_IPersistStream_Load (IUnknown)
*
*
* Loads the binary data from the IStream. Starts at current position.
* Loads the binary data from the IStream. Starts at current position.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment