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
ce951c9c
Commit
ce951c9c
authored
Nov 17, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Build without -DWINE_NO_LONG_TYPES.
parent
e85f5aa6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
22 deletions
+23
-22
Makefile.in
dlls/opengl32/Makefile.in
+1
-1
make_opengl
dlls/opengl32/make_opengl
+7
-7
thunks.c
dlls/opengl32/thunks.c
+0
-0
unix_wgl.c
dlls/opengl32/unix_wgl.c
+5
-5
wgl.c
dlls/opengl32/wgl.c
+10
-9
No files found.
dlls/opengl32/Makefile.in
View file @
ce951c9c
MODULE
=
opengl32.dll
UNIXLIB
=
opengl32.so
EXTRADEFS
=
-D
WINE_NO_LONG_TYPES
-D
_OPENGL32_
EXTRADEFS
=
-D_OPENGL32_
IMPORTLIB
=
opengl32
IMPORTS
=
user32 gdi32 advapi32 win32u
DELAYIMPORTS
=
glu32
...
...
dlls/opengl32/make_opengl
View file @
ce951c9c
...
...
@@ -94,12 +94,12 @@ my %arg_types =
"GLint"
=>
[
"long"
,
"%d"
],
"GLint64"
=>
[
"int64"
,
"wine_dbgstr_longlong(%s)"
],
"GLint64EXT"
=>
[
"int64"
,
"wine_dbgstr_longlong(%s)"
],
"GLintptr"
=>
[
"long"
,
"%
l
d"
],
"GLintptrARB"
=>
[
"long"
,
"%
l
d"
],
"GLintptr"
=>
[
"long"
,
"%
I
d"
],
"GLintptrARB"
=>
[
"long"
,
"%
I
d"
],
"GLshort"
=>
[
"long"
,
"%d"
],
"GLsizei"
=>
[
"long"
,
"%d"
],
"GLsizeiptr"
=>
[
"long"
,
"%
l
d"
],
"GLsizeiptrARB"
=>
[
"long"
,
"%
l
d"
],
"GLsizeiptr"
=>
[
"long"
,
"%
I
d"
],
"GLsizeiptrARB"
=>
[
"long"
,
"%
I
d"
],
"GLstring"
=>
[
"str"
,
"wine_dbgstr_a(%s)"
],
"GLsync"
=>
[
"ptr"
,
"%p"
],
"GLubyte"
=>
[
"long"
,
"%d"
],
...
...
@@ -107,7 +107,7 @@ my %arg_types =
"GLuint64"
=>
[
"int64"
,
"wine_dbgstr_longlong(%s)"
],
"GLuint64EXT"
=>
[
"int64"
,
"wine_dbgstr_longlong(%s)"
],
"GLushort"
=>
[
"long"
,
"%d"
],
"GLvdpauSurfaceNV"
=>
[
"long"
,
"%
l
d"
],
"GLvdpauSurfaceNV"
=>
[
"long"
,
"%
I
d"
],
"GLDEBUGPROC"
=>
[
"ptr"
,
"%p"
],
"GLDEBUGPROCARB"
=>
[
"ptr"
,
"%p"
],
"GLDEBUGPROCAMD"
=>
[
"ptr"
,
"%p"
],
...
...
@@ -120,7 +120,7 @@ my %arg_types =
"LPGLYPHMETRICSFLOAT"
=>
[
"ptr"
,
"%p"
],
"LPCSTR"
=>
[
"str"
,
"wine_dbgstr_a(%s)"
],
"UINT"
=>
[
"long"
,
"%u"
],
"DWORD"
=>
[
"long"
,
"%u"
],
"DWORD"
=>
[
"long"
,
"%
l
u"
],
"BOOL"
=>
[
"long"
,
"%u"
],
"FLOAT"
=>
[
"float"
,
"%f"
],
);
...
...
@@ -316,7 +316,7 @@ sub generate_win_thunk($$)
$ret
.=
" memcpy( args.$pname, $pname, sizeof(args.$pname) );\n"
if
$arg
->
textContent
()
=~
/\[/
;
}
$ret
.=
" "
.
get_func_trace
(
$name
,
$func
,
1
)
if
$gen_traces
;
$ret
.=
" if ((status = UNIX_CALL( $name, &args ))) WARN( \"$name returned %#x\\n\", status );\n"
;
$ret
.=
" if ((status = UNIX_CALL( $name, &args ))) WARN( \"$name returned %#
l
x\\n\", status );\n"
;
$ret
.=
" return args.ret;\n"
unless
is_void_func
(
$func
);
$ret
.=
"}\n"
;
...
...
dlls/opengl32/thunks.c
View file @
ce951c9c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dlls/opengl32/unix_wgl.c
View file @
ce951c9c
...
...
@@ -272,12 +272,12 @@ static HKEY open_hkcu_key( const char *name )
sid
=
((
TOKEN_USER
*
)
sid_data
)
->
User
.
Sid
;
len
=
sprintf
(
buffer
,
"
\\
Registry
\\
User
\\
S-%u-%u"
,
sid
->
Revision
,
MAKELONG
(
MAKEWORD
(
sid
->
IdentifierAuthority
.
Value
[
5
],
sid
->
IdentifierAuthority
.
Value
[
4
]
),
MAKEWORD
(
sid
->
IdentifierAuthority
.
Value
[
3
],
sid
->
IdentifierAuthority
.
Value
[
2
]
)));
(
int
)
MAKELONG
(
MAKEWORD
(
sid
->
IdentifierAuthority
.
Value
[
5
],
sid
->
IdentifierAuthority
.
Value
[
4
]
),
MAKEWORD
(
sid
->
IdentifierAuthority
.
Value
[
3
],
sid
->
IdentifierAuthority
.
Value
[
2
]
)));
for
(
i
=
0
;
i
<
sid
->
SubAuthorityCount
;
i
++
)
len
+=
sprintf
(
buffer
+
len
,
"-%u"
,
sid
->
SubAuthority
[
i
]
);
len
+=
sprintf
(
buffer
+
len
,
"-%u"
,
(
int
)
sid
->
SubAuthority
[
i
]
);
ascii_to_unicode
(
bufferW
,
buffer
,
len
);
hkcu
=
reg_open_key
(
NULL
,
bufferW
,
len
*
sizeof
(
WCHAR
)
);
...
...
dlls/opengl32/wgl.c
View file @
ce951c9c
...
...
@@ -79,7 +79,7 @@ INT WINAPI wglChoosePixelFormat(HDC hdc, const PIXELFORMATDESCRIPTOR* ppfd)
int
i
,
count
,
best_format
;
int
bestDBuffer
=
-
1
,
bestStereo
=
-
1
;
TRACE_
(
wgl
)(
"%p %p: size %u version %u flags %u type %u color %u %u,%u,%u,%u "
TRACE_
(
wgl
)(
"%p %p: size %u version %u flags %
l
u type %u color %u %u,%u,%u,%u "
"accum %u depth %u stencil %u aux %u
\n
"
,
hdc
,
ppfd
,
ppfd
->
nSize
,
ppfd
->
nVersion
,
ppfd
->
dwFlags
,
ppfd
->
iPixelType
,
ppfd
->
cColorBits
,
ppfd
->
cRedBits
,
ppfd
->
cGreenBits
,
ppfd
->
cBlueBits
,
ppfd
->
cAlphaBits
,
...
...
@@ -252,7 +252,7 @@ INT WINAPI wglGetPixelFormat(HDC hdc)
if
((
status
=
UNIX_CALL
(
wglGetPixelFormat
,
&
args
)))
{
WARN
(
"wglGetPixelFormat returned %#x
\n
"
,
status
);
WARN
(
"wglGetPixelFormat returned %#
l
x
\n
"
,
status
);
SetLastError
(
ERROR_INVALID_PIXEL_FORMAT
);
}
...
...
@@ -267,7 +267,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH wglSwapBuffers( HDC hdc )
struct
wglSwapBuffers_params
args
=
{
.
hdc
=
hdc
,
};
NTSTATUS
status
;
if
((
status
=
UNIX_CALL
(
wglSwapBuffers
,
&
args
)))
WARN
(
"wglSwapBuffers returned %#x
\n
"
,
status
);
if
((
status
=
UNIX_CALL
(
wglSwapBuffers
,
&
args
)))
WARN
(
"wglSwapBuffers returned %#
l
x
\n
"
,
status
);
else
if
(
TRACE_ON
(
fps
))
{
static
long
prev_time
,
start_time
;
...
...
@@ -339,7 +339,8 @@ PROC WINAPI wglGetProcAddress( LPCSTR name )
NTSTATUS
status
;
if
(
!
name
)
return
NULL
;
if
((
status
=
UNIX_CALL
(
wglGetProcAddress
,
&
args
)))
WARN
(
"wglGetProcAddress %s returned %#x
\n
"
,
debugstr_a
(
name
),
status
);
if
((
status
=
UNIX_CALL
(
wglGetProcAddress
,
&
args
)))
WARN
(
"wglGetProcAddress %s returned %#lx
\n
"
,
debugstr_a
(
name
),
status
);
if
(
args
.
ret
==
(
void
*
)
-
1
)
return
NULL
;
proc
=
extension_procs
[(
UINT_PTR
)
args
.
ret
];
...
...
@@ -421,7 +422,7 @@ static BOOL wglUseFontBitmaps_common( HDC hdc, DWORD first, DWORD count, DWORD l
else
needed_size
=
GetGlyphOutlineA
(
hdc
,
glyph
,
GGO_BITMAP
,
&
gm
,
0
,
NULL
,
&
identity
);
TRACE
(
"Glyph: %3d / List: %d size %d
\n
"
,
glyph
,
listBase
,
needed_size
);
TRACE
(
"Glyph: %3d / List: %
l
d size %d
\n
"
,
glyph
,
listBase
,
needed_size
);
if
(
needed_size
==
GDI_ERROR
)
{
ret
=
FALSE
;
break
;
...
...
@@ -449,7 +450,7 @@ static BOOL wglUseFontBitmaps_common( HDC hdc, DWORD first, DWORD count, DWORD l
unsigned
char
*
bitmap_
=
bitmap
;
TRACE
(
" - bbox: %d x %d
\n
"
,
gm
.
gmBlackBoxX
,
gm
.
gmBlackBoxY
);
TRACE
(
" - origin: (%
d, %
d)
\n
"
,
gm
.
gmptGlyphOrigin
.
x
,
gm
.
gmptGlyphOrigin
.
y
);
TRACE
(
" - origin: (%
ld, %l
d)
\n
"
,
gm
.
gmptGlyphOrigin
.
x
,
gm
.
gmptGlyphOrigin
.
y
);
TRACE
(
" - increment: %d - %d
\n
"
,
gm
.
gmCellIncX
,
gm
.
gmCellIncY
);
if
(
needed_size
!=
0
)
{
TRACE
(
" - bitmap:
\n
"
);
...
...
@@ -612,7 +613,7 @@ static BOOL wglUseFontOutlines_common(HDC hdc,
UINT
em_size
=
1024
;
RECT
rc
;
TRACE
(
"(%p, %
d, %d, %
d, %f, %f, %d, %p, %s)
\n
"
,
hdc
,
first
,
count
,
TRACE
(
"(%p, %
ld, %ld, %l
d, %f, %f, %d, %p, %s)
\n
"
,
hdc
,
first
,
count
,
listBase
,
deviation
,
extrusion
,
format
,
lpgmf
,
unicode
?
"W"
:
"A"
);
if
(
deviation
<=
0
.
0
)
...
...
@@ -878,7 +879,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
if
((
status
=
NtQueryVirtualMemory
(
GetCurrentProcess
(),
hinst
,
MemoryWineUnixFuncs
,
&
unixlib_handle
,
sizeof
(
unixlib_handle
),
NULL
)))
{
ERR
(
"Failed to load unixlib, status %#x
\n
"
,
status
);
ERR
(
"Failed to load unixlib, status %#
l
x
\n
"
,
status
);
return
FALSE
;
}
...
...
@@ -888,7 +889,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
case
DLL_THREAD_ATTACH
:
if
((
status
=
UNIX_CALL
(
thread_attach
,
NULL
)))
{
WARN
(
"Failed to initialize thread, status %#x
\n
"
,
status
);
WARN
(
"Failed to initialize thread, status %#
l
x
\n
"
,
status
);
return
FALSE
;
}
break
;
...
...
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