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
8941c0bc
Commit
8941c0bc
authored
Jan 26, 2004
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 26, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added glutCreateMenuWithExit, glutCreateWindowWithExit and
glutInitWithExit functions.
parent
a3b58e9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
glut.c
dlls/glut32/glut.c
+20
-3
No files found.
dlls/glut32/glut.c
View file @
8941c0bc
...
...
@@ -18,6 +18,20 @@
#include "windef.h"
static
void
(
*
__glutExitFunc
)(
int
ret
)
=
0
;
/***************************************************
* DllMain [glut32.init]
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDll
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
if
(
fdwReason
==
DLL_PROCESS_DETACH
)
{
if
(
__glutExitFunc
)
__glutExitFunc
(
0
);
}
return
TRUE
;
}
/****************************************************
* glutGetColor (glut32.@)
*/
...
...
@@ -57,8 +71,9 @@ int WINAPI wine_glutCreateMenu(void *arg)
/****************************************************
* __glutCreateMenuWithExit (glut32.@)
*/
int
WINAPI
wine___glutCreateMenuWithExit
(
void
*
arg1
,
void
*
arg2
)
int
WINAPI
wine___glutCreateMenuWithExit
(
void
*
arg1
,
void
(
*
exitfunc
)(
int
)
)
{
__glutExitFunc
=
exitfunc
;
return
glutCreateMenu
(
arg1
);
}
...
...
@@ -83,8 +98,9 @@ int WINAPI wine_glutCreateWindow(void *arg)
/****************************************************
* __glutCreateWindowWithExit (glut32.@)
*/
int
WINAPI
wine___glutCreateWindowWithExit
(
void
*
arg
,
void
*
arg2
)
int
WINAPI
wine___glutCreateWindowWithExit
(
void
*
arg
,
void
(
*
exitfunc
)(
int
)
)
{
__glutExitFunc
=
exitfunc
;
return
glutCreateWindow
(
arg
);
}
...
...
@@ -433,8 +449,9 @@ void WINAPI wine_glutInit(void *arg1, void **arg2)
/**********************************************
* __glutInitWithExit (glut32.@)
*/
void
WINAPI
wine___glutInitWithExit
(
void
*
arg1
,
void
*
arg2
,
void
*
arg3
)
void
WINAPI
wine___glutInitWithExit
(
void
*
arg1
,
void
*
arg2
,
void
(
*
exitfunc
)(
int
)
)
{
__glutExitFunc
=
exitfunc
;
glutInit
(
arg1
,
arg2
);
}
...
...
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