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
ff380900
Commit
ff380900
authored
Dec 06, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Sign-compare warnings fix.
parent
1bf1adcc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
13 deletions
+11
-13
opengl.c
dlls/winex11.drv/opengl.c
+6
-7
text.c
dlls/winex11.drv/text.c
+1
-1
xrandr.c
dlls/winex11.drv/xrandr.c
+4
-5
No files found.
dlls/winex11.drv/opengl.c
View file @
ff380900
...
...
@@ -1892,8 +1892,7 @@ static BOOL internal_wglUseFontBitmaps(HDC hdc, DWORD first, DWORD count, DWORD
{
/* We are running using client-side rendering fonts... */
GLYPHMETRICS
gm
;
unsigned
int
glyph
;
int
size
=
0
;
unsigned
int
glyph
,
size
=
0
;
void
*
bitmap
=
NULL
,
*
gl_bitmap
=
NULL
;
int
org_alignment
;
...
...
@@ -1904,7 +1903,7 @@ static BOOL internal_wglUseFontBitmaps(HDC hdc, DWORD first, DWORD count, DWORD
for
(
glyph
=
first
;
glyph
<
first
+
count
;
glyph
++
)
{
unsigned
int
needed_size
=
GetGlyphOutline_ptr
(
hdc
,
glyph
,
GGO_BITMAP
,
&
gm
,
0
,
NULL
,
NULL
);
int
height
,
width_int
;
unsigned
int
height
,
width_int
;
TRACE
(
"Glyph : %3d / List : %d
\n
"
,
glyph
,
listBase
);
if
(
needed_size
==
GDI_ERROR
)
{
...
...
@@ -1955,7 +1954,7 @@ static BOOL internal_wglUseFontBitmaps(HDC hdc, DWORD first, DWORD count, DWORD
if
(
needed_size
!=
0
)
{
width_int
=
(
gm
.
gmBlackBoxX
+
31
)
/
32
;
for
(
height
=
0
;
height
<
gm
.
gmBlackBoxY
;
height
++
)
{
int
width
;
unsigned
int
width
;
for
(
width
=
0
;
width
<
width_int
;
width
++
)
{
((
int
*
)
gl_bitmap
)[(
gm
.
gmBlackBoxY
-
height
-
1
)
*
width_int
+
width
]
=
((
int
*
)
bitmap
)[
height
*
width_int
+
width
];
...
...
@@ -2603,10 +2602,10 @@ static GLboolean WINAPI X11DRV_wglChoosePixelFormatARB(HDC hdc, const int *piAtt
int
nAttribs
=
0
;
GLXFBConfig
*
cfgs
=
NULL
;
int
nCfgs
=
0
;
UINT
it
;
int
it
;
int
fmt_id
;
WineGLPixelFormat
*
fmt
;
int
pfmt_it
=
0
;
UINT
pfmt_it
=
0
;
int
run
;
TRACE
(
"(%p, %p, %p, %d, %p, %p): hackish
\n
"
,
hdc
,
piAttribIList
,
pfAttribFList
,
nMaxFormats
,
piFormats
,
nNumFormats
);
...
...
@@ -2925,7 +2924,7 @@ static GLboolean WINAPI X11DRV_wglGetPixelFormatAttribfvARB(HDC hdc, int iPixelF
{
int
*
attr
;
int
ret
;
int
i
;
UINT
i
;
TRACE
(
"(%p, %d, %d, %d, %p, %p)
\n
"
,
hdc
,
iPixelFormat
,
iLayerPlane
,
nAttributes
,
piAttributes
,
pfValues
);
...
...
dlls/winex11.drv/text.c
View file @
ff380900
...
...
@@ -151,7 +151,7 @@ X11DRV_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flags,
{
/* have to render character by character. */
double
offset
=
0
.
0
;
int
i
;
UINT
i
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
...
...
dlls/winex11.drv/xrandr.c
View file @
ff380900
...
...
@@ -111,8 +111,8 @@ static int XRandRErrorHandler(Display *dpy, XErrorEvent *event, void *arg)
/* create the mode structures */
static
void
make_modes
(
void
)
{
unsigned
int
i
;
int
j
;
int
i
,
j
;
for
(
i
=
0
;
i
<
real_xrandr_sizes_count
;
i
++
)
{
if
(
real_xrandr_rates_count
[
i
])
...
...
@@ -240,8 +240,7 @@ static LONG X11DRV_XRandR_SetCurrentMode(int mode)
void
X11DRV_XRandR_Init
(
void
)
{
Bool
ok
;
int
nmodes
=
0
;
unsigned
int
i
;
int
i
,
nmodes
=
0
;
if
(
xrandr_major
)
return
;
/* already initialized? */
if
(
!
usexrandr
)
return
;
/* disabled in config */
...
...
@@ -272,7 +271,7 @@ void X11DRV_XRandR_Init(void)
for
(
i
=
0
;
i
<
real_xrandr_sizes_count
;
i
++
)
{
real_xrandr_rates
[
i
]
=
pXRRRates
(
gdi_display
,
DefaultScreen
(
gdi_display
),
i
,
&
(
real_xrandr_rates_count
[
i
]));
TRACE
(
"- at %
u
: %dx%d (%d rates):"
,
i
,
real_xrandr_sizes
[
i
].
width
,
real_xrandr_sizes
[
i
].
height
,
real_xrandr_rates_count
[
i
]);
TRACE
(
"- at %
d
: %dx%d (%d rates):"
,
i
,
real_xrandr_sizes
[
i
].
width
,
real_xrandr_sizes
[
i
].
height
,
real_xrandr_rates_count
[
i
]);
if
(
real_xrandr_rates_count
[
i
])
{
int
j
;
...
...
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