Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
RACE
Commits
722ee974
Commit
722ee974
authored
Jan 07, 2020
by
Libretro-Admin
Browse files
Start getting rid of HWND usage
parent
99a633f5
Changes
7
Hide whitespace changes
Inline
Side-by-side
StdAfx.h
View file @
722ee974
...
...
@@ -24,7 +24,6 @@
#define BOOL int
#define FALSE 0
#define TRUE (!0)
#define HWND void*
#ifdef _WIN32
#define path_default_slash() "\\"
...
...
graphics.cpp
View file @
722ee974
...
...
@@ -1603,7 +1603,7 @@ const char ErrCreateSurface[] = "CreateSurface Failed";
#define DDOK(x) if (hRet != DD_OK) { LastErr = x; return FALSE; }
BOOL
graphics_init
(
HWND
phWn
d
)
BOOL
graphics_init
(
voi
d
)
{
#ifdef __LIBRETRO__
palette_init
=
palette_init16
;
...
...
graphics.h
View file @
722ee974
...
...
@@ -37,7 +37,7 @@
//extern unsigned char *drawBuffer;
//extern BITMAP myBitmap;
BOOL
graphics_init
(
HWND
phWn
d
);
BOOL
graphics_init
(
voi
d
);
void
graphics_blit
(
void
);
void
graphics_paint
();
void
graphics_cleanup
();
...
...
input.cpp
View file @
722ee974
...
...
@@ -29,7 +29,7 @@ struct joy_range
int
minx
,
maxx
,
miny
,
maxy
;
}
range
;
BOOL
InitInput
(
HWND
hwn
d
)
BOOL
InitInput
(
voi
d
)
{
return
TRUE
;
}
...
...
input.h
View file @
722ee974
...
...
@@ -18,7 +18,7 @@
extern
unsigned
char
ngpInputState
;
BOOL
InitInput
(
HWND
hWn
d
);
BOOL
InitInput
(
voi
d
);
void
UpdateInputState
(
void
);
void
FreeInput
(
void
);
...
...
main.cpp
View file @
722ee974
...
...
@@ -55,7 +55,7 @@ void mainemuinit()
{
// initialize cpu memory
mem_init
();
graphics_init
(
NULL
);
graphics_init
();
// initialize the TLCS-900H cpu
tlcs_init
();
...
...
sound.h
View file @
722ee974
...
...
@@ -19,10 +19,10 @@
#include "StdAfx.h"
#include "main.h"
int
initSound
();
void
soundCleanup
();
int
initSound
(
void
);
void
soundCleanup
(
void
);
void
setHwnd
(
HWND
hWn
d
);
void
setHwnd
(
voi
d
);
/* stolen MAME things */
int
osd_start_audio_stream
(
int
stereo
);
...
...
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