Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3a522f3d
Commit
3a522f3d
authored
Mar 27, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store the handle to the stock bitmap when the first DC is created to
avoid exporting the DEFAULT_BITMAP define.
parent
c91df67f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
6 deletions
+9
-6
gdi_private.h
dlls/gdi/gdi_private.h
+3
-0
bitmap.c
dlls/x11drv/bitmap.c
+4
-3
init.c
dlls/x11drv/init.c
+1
-0
x11drv.h
dlls/x11drv/x11drv.h
+1
-0
gdi.h
include/gdi.h
+0
-3
No files found.
dlls/gdi/gdi_private.h
View file @
3a522f3d
...
...
@@ -28,6 +28,9 @@
#define METAFILE_MEMORY 1
#define METAFILE_DISK 2
/* extra stock object: default 1x1 bitmap for memory DCs */
#define DEFAULT_BITMAP (STOCK_LAST+1)
struct
gdi_obj_funcs
{
HGDIOBJ
(
*
pSelectObject
)(
HGDIOBJ
handle
,
void
*
obj
,
HDC
hdc
);
...
...
dlls/x11drv/bitmap.c
View file @
3a522f3d
...
...
@@ -34,7 +34,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(x11drv);
/* GCs used for B&W and color bitmap operations */
GC
BITMAP_monoGC
=
0
,
BITMAP_colorGC
=
0
;
Pixmap
BITMAP_stock_pixmap
;
/* pixmap for the default stock bitmap */
HBITMAP
BITMAP_stock_bitmap
=
0
;
/* default stock bitmap */
Pixmap
BITMAP_stock_pixmap
=
0
;
/* pixmap for the default stock bitmap */
/***********************************************************************
* X11DRV_BITMAP_Init
...
...
@@ -76,7 +77,7 @@ HBITMAP X11DRV_SelectBitmap( X11DRV_PDEVICE *physDev, HBITMAP hbitmap )
if
(
physDev
->
xrender
)
X11DRV_XRender_UpdateDrawable
(
physDev
);
if
(
hbitmap
==
GetStockObject
(
DEFAULT_BITMAP
)
)
if
(
hbitmap
==
BITMAP_stock_bitmap
)
physDev
->
drawable
=
BITMAP_stock_pixmap
;
else
physDev
->
drawable
=
(
Pixmap
)
bmp
->
physBitmap
;
...
...
@@ -128,7 +129,7 @@ BOOL X11DRV_CreateBitmap( X11DRV_PDEVICE *physDev, HBITMAP hbitmap )
GDI_ReleaseObj
(
hbitmap
);
return
FALSE
;
}
if
(
hbitmap
==
GetStockObject
(
DEFAULT_BITMAP
)
)
if
(
hbitmap
==
BITMAP_stock_bitmap
)
{
ERR
(
"called for stock bitmap, please report
\n
"
);
GDI_ReleaseObj
(
hbitmap
);
...
...
dlls/x11drv/init.c
View file @
3a522f3d
...
...
@@ -139,6 +139,7 @@ BOOL X11DRV_CreateDC( HDC hdc, X11DRV_PDEVICE **pdev, LPCWSTR driver, LPCWSTR de
if
(
GetObjectType
(
hdc
)
==
OBJ_MEMDC
)
{
if
(
!
BITMAP_stock_bitmap
)
BITMAP_stock_bitmap
=
GetCurrentObject
(
hdc
,
OBJ_BITMAP
);
physDev
->
drawable
=
BITMAP_stock_pixmap
;
physDev
->
depth
=
1
;
}
...
...
dlls/x11drv/x11drv.h
View file @
3a522f3d
...
...
@@ -111,6 +111,7 @@ typedef struct
/* GCs used for B&W and color bitmap operations */
extern
GC
BITMAP_monoGC
,
BITMAP_colorGC
;
extern
HBITMAP
BITMAP_stock_bitmap
;
/* default stock bitmap */
extern
Pixmap
BITMAP_stock_pixmap
;
/* pixmap for the default stock bitmap */
#define BITMAP_GC(bmp) \
...
...
include/gdi.h
View file @
3a522f3d
...
...
@@ -65,9 +65,6 @@ typedef struct tagGDIOBJHDR
struct
hdc_list
*
hdcs
;
}
GDIOBJHDR
;
/* extra stock object: default 1x1 bitmap for memory DCs */
#define DEFAULT_BITMAP (STOCK_LAST+1)
/* bitmap object */
typedef
struct
tagBITMAPOBJ
...
...
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