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
4e92e653
Commit
4e92e653
authored
Feb 16, 2001
by
François Gouget
Committed by
Alexandre Julliard
Feb 16, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added DIB/pixmap synchronization for {Get,Set}Pixel.
parent
d9280fed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
graphics.c
graphics/x11drv/graphics.c
+14
-4
No files found.
graphics/x11drv/graphics.c
View file @
4e92e653
...
...
@@ -864,15 +864,18 @@ X11DRV_SetPixel( DC *dc, INT x, INT y, COLORREF color )
x
=
dc
->
DCOrgX
+
INTERNAL_XWPTODP
(
dc
,
x
,
y
);
y
=
dc
->
DCOrgY
+
INTERNAL_YWPTODP
(
dc
,
x
,
y
);
pixel
=
X11DRV_PALETTE_ToPhysical
(
dc
,
color
);
/* Update the pixmap from the DIB section */
X11DRV_LockDIBSection
(
dc
,
DIB_Status_GdiMod
,
FALSE
);
/* inefficient but simple... */
TSXSetForeground
(
display
,
physDev
->
gc
,
pixel
);
TSXSetFunction
(
display
,
physDev
->
gc
,
GXcopy
);
TSXDrawPoint
(
display
,
physDev
->
drawable
,
physDev
->
gc
,
x
,
y
);
/* inefficient but simple... */
/* Update the DIBSection from the pixmap */
X11DRV_UnlockDIBSection
(
dc
,
TRUE
);
/* FIXME: the DIBSection pixel should be updated too */
return
X11DRV_PALETTE_ToLogical
(
pixel
);
}
...
...
@@ -888,6 +891,9 @@ X11DRV_GetPixel( DC *dc, INT x, INT y )
int
pixel
;
X11DRV_PDEVICE
*
physDev
=
(
X11DRV_PDEVICE
*
)
dc
->
physDev
;
/* Update the pixmap from the DIB section */
X11DRV_LockDIBSection
(
dc
,
DIB_Status_GdiMod
,
FALSE
);
x
=
dc
->
DCOrgX
+
INTERNAL_XWPTODP
(
dc
,
x
,
y
);
y
=
dc
->
DCOrgY
+
INTERNAL_YWPTODP
(
dc
,
x
,
y
);
wine_tsx11_lock
();
...
...
@@ -909,6 +915,10 @@ X11DRV_GetPixel( DC *dc, INT x, INT y )
pixel
=
XGetPixel
(
image
,
0
,
0
);
XDestroyImage
(
image
);
wine_tsx11_unlock
();
/* Update the DIBSection from the pixmap */
X11DRV_UnlockDIBSection
(
dc
,
FALSE
);
return
X11DRV_PALETTE_ToLogical
(
pixel
);
}
...
...
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