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
9cfeb5b8
Commit
9cfeb5b8
authored
Mar 10, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
Mar 10, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid unnecessary GraphicsExpose events.
parent
66e3a855
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
bitblt.c
graphics/x11drv/bitblt.c
+7
-4
bitmap.c
graphics/x11drv/bitmap.c
+1
-0
event.c
windows/x11drv/event.c
+6
-2
No files found.
graphics/x11drv/bitblt.c
View file @
9cfeb5b8
...
...
@@ -1242,27 +1242,29 @@ static BOOL BITBLT_InternalStretchBlt( DC *dcDst, INT xDst, INT yDst,
case
SRCCOPY
:
/* 0xcc */
if
(
dcSrc
->
w
.
bitsPerPixel
==
dcDst
->
w
.
bitsPerPixel
)
{
XSetGraphicsExposures
(
display
,
physDevDst
->
gc
,
True
);
BOOL
expose
=
!
(
dcSrc
->
w
.
flags
&
DC_MEMORY
)
&&
!
(
dcDst
->
w
.
flags
&
DC_MEMORY
);
if
(
expose
)
XSetGraphicsExposures
(
display
,
physDevDst
->
gc
,
True
);
XSetFunction
(
display
,
physDevDst
->
gc
,
GXcopy
);
XCopyArea
(
display
,
physDevSrc
->
drawable
,
physDevDst
->
drawable
,
physDevDst
->
gc
,
visRectSrc
.
left
,
visRectSrc
.
top
,
width
,
height
,
visRectDst
.
left
,
visRectDst
.
top
);
XSetGraphicsExposures
(
display
,
physDevDst
->
gc
,
False
);
if
(
expose
)
XSetGraphicsExposures
(
display
,
physDevDst
->
gc
,
False
);
return
TRUE
;
}
if
(
dcSrc
->
w
.
bitsPerPixel
==
1
)
{
BOOL
expose
=
!
(
dcSrc
->
w
.
flags
&
DC_MEMORY
)
&&
!
(
dcDst
->
w
.
flags
&
DC_MEMORY
);
XSetBackground
(
display
,
physDevDst
->
gc
,
physDevDst
->
textPixel
);
XSetForeground
(
display
,
physDevDst
->
gc
,
physDevDst
->
backgroundPixel
);
XSetFunction
(
display
,
physDevDst
->
gc
,
GXcopy
);
XSetGraphicsExposures
(
display
,
physDevDst
->
gc
,
True
);
if
(
expose
)
XSetGraphicsExposures
(
display
,
physDevDst
->
gc
,
True
);
XCopyPlane
(
display
,
physDevSrc
->
drawable
,
physDevDst
->
drawable
,
physDevDst
->
gc
,
visRectSrc
.
left
,
visRectSrc
.
top
,
width
,
height
,
visRectDst
.
left
,
visRectDst
.
top
,
1
);
XSetGraphicsExposures
(
display
,
physDevDst
->
gc
,
False
);
if
(
expose
)
XSetGraphicsExposures
(
display
,
physDevDst
->
gc
,
False
);
return
TRUE
;
}
break
;
...
...
@@ -1290,6 +1292,7 @@ static BOOL BITBLT_InternalStretchBlt( DC *dcDst, INT xDst, INT yDst,
}
tmpGC
=
XCreateGC
(
display
,
physDevDst
->
drawable
,
0
,
NULL
);
XSetGraphicsExposures
(
display
,
tmpGC
,
False
);
pixmaps
[
DST
]
=
XCreatePixmap
(
display
,
X11DRV_GetXRootWindow
(),
width
,
height
,
dcDst
->
w
.
bitsPerPixel
);
if
(
useSrc
)
...
...
graphics/x11drv/bitmap.c
View file @
9cfeb5b8
...
...
@@ -112,6 +112,7 @@ HBITMAP X11DRV_BITMAP_SelectObject( DC * dc, HBITMAP hbitmap,
{
TSXFreeGC
(
display
,
physDev
->
gc
);
physDev
->
gc
=
TSXCreateGC
(
display
,
physDev
->
drawable
,
0
,
NULL
);
TSXSetGraphicsExposures
(
display
,
physDev
->
gc
,
False
);
dc
->
w
.
bitsPerPixel
=
bmp
->
bitmap
.
bmBitsPixel
;
DC_InitDC
(
dc
);
}
...
...
windows/x11drv/event.c
View file @
9cfeb5b8
...
...
@@ -402,8 +402,12 @@ static void EVENT_ProcessEvent( XEvent *event )
}
}
TRACE
(
event
,
"Got event %s for hwnd %04x
\n
"
,
event_names
[
event
->
type
],
pWnd
?
pWnd
->
hwndSelf
:
0
);
if
(
!
pWnd
&&
event
->
xany
.
window
!=
X11DRV_GetXRootWindow
()
)
ERR
(
event
,
"Got event %s for unknown Window %08lx
\n
"
,
event_names
[
event
->
type
],
event
->
xany
.
window
);
else
TRACE
(
event
,
"Got event %s for hwnd %04x
\n
"
,
event_names
[
event
->
type
],
pWnd
?
pWnd
->
hwndSelf
:
0
);
switch
(
event
->
type
)
{
...
...
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