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
6c5b58a4
Commit
6c5b58a4
authored
Sep 11, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Sep 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Simplify ConvertPixelFormatWGLtoGLX.
parent
5221921f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
opengl.c
dlls/winex11.drv/opengl.c
+8
-12
No files found.
dlls/winex11.drv/opengl.c
View file @
6c5b58a4
...
@@ -894,22 +894,18 @@ static WineGLPixelFormat* ConvertPixelFormatWGLtoGLX(Display *display, int iPixe
...
@@ -894,22 +894,18 @@ static WineGLPixelFormat* ConvertPixelFormatWGLtoGLX(Display *display, int iPixe
/* Check if the pixelformat is valid. Note that it is legal to pass an invalid
/* Check if the pixelformat is valid. Note that it is legal to pass an invalid
* iPixelFormat in case of probing the number of pixelformats.
* iPixelFormat in case of probing the number of pixelformats.
*/
*/
if
((
iPixelFormat
<=
0
)
||
(
iPixelFormat
>
WineGLPixelFormatListSize
))
{
if
((
iPixelFormat
>
0
)
&&
(
iPixelFormat
<=
WineGLPixelFormatListSize
)
&&
if
(
AllowOffscreen
)
((
WineGLPixelFormatList
[
iPixelFormat
-
1
].
offscreenOnly
==
FALSE
)
||
*
fmt_count
=
WineGLPixelFormatListSize
;
AllowOffscreen
))
{
else
*
fmt_count
=
1
;
/* Only show the format of our main visual */
}
else
if
(
iPixelFormat
==
1
)
{
res
=
&
WineGLPixelFormatList
[
0
];
*
fmt_count
=
1
;
/* Only show the format of our main visual */
}
else
if
((
WineGLPixelFormatList
[
iPixelFormat
-
1
].
offscreenOnly
==
TRUE
)
&&
AllowOffscreen
)
{
res
=
&
WineGLPixelFormatList
[
iPixelFormat
-
1
];
res
=
&
WineGLPixelFormatList
[
iPixelFormat
-
1
];
*
fmt_count
=
WineGLPixelFormatListSize
;
TRACE
(
"Returning FBConfig=%p for iPixelFormat=%d
\n
"
,
res
->
fbconfig
,
iPixelFormat
);
TRACE
(
"Returning FBConfig=%p for iPixelFormat=%d
\n
"
,
res
->
fbconfig
,
iPixelFormat
);
}
}
if
(
AllowOffscreen
)
*
fmt_count
=
WineGLPixelFormatListSize
;
else
*
fmt_count
=
1
;
TRACE
(
"Number of returned pixelformats=%d
\n
"
,
*
fmt_count
);
TRACE
(
"Number of returned pixelformats=%d
\n
"
,
*
fmt_count
);
return
res
;
return
res
;
...
...
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