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
332d62ba
Commit
332d62ba
authored
May 31, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid division by zero (thanks to David Ronis).
parent
d8a9244f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
mouse.c
dlls/x11drv/mouse.c
+14
-6
No files found.
dlls/x11drv/mouse.c
View file @
332d62ba
...
...
@@ -301,13 +301,21 @@ Cursor X11DRV_GetCursor( Display *display, CURSORICONINFO *ptr )
rscale
=
1
<<
(
16
-
rbits
);
gscale
=
1
<<
(
16
-
gbits
);
bscale
=
1
<<
(
16
-
bbits
);
fg
.
red
=
rfg
*
rscale
/
fgBits
;
fg
.
green
=
gfg
*
gscale
/
fgBits
;
fg
.
blue
=
bfg
*
bscale
/
fgBits
;
if
(
fgBits
)
{
fg
.
red
=
rfg
*
rscale
/
fgBits
;
fg
.
green
=
gfg
*
gscale
/
fgBits
;
fg
.
blue
=
bfg
*
bscale
/
fgBits
;
}
else
fg
.
red
=
fg
.
green
=
fg
.
blue
=
0
;
bgBits
=
xmax
*
ymax
-
fgBits
;
bg
.
red
=
rbg
*
rscale
/
bgBits
;
bg
.
green
=
gbg
*
gscale
/
bgBits
;
bg
.
blue
=
bbg
*
bscale
/
bgBits
;
if
(
bgBits
)
{
bg
.
red
=
rbg
*
rscale
/
bgBits
;
bg
.
green
=
gbg
*
gscale
/
bgBits
;
bg
.
blue
=
bbg
*
bscale
/
bgBits
;
}
else
bg
.
red
=
bg
.
green
=
bg
.
blue
=
0
;
pixmapBits
=
XCreateBitmapFromData
(
display
,
root_window
,
pXorBits
,
xmax
,
ymax
);
if
(
!
pixmapBits
)
{
...
...
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