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
snes9x2002
Commits
ef4fa1dd
Unverified
Commit
ef4fa1dd
authored
Mar 03, 2022
by
Libretro-Admin
Committed by
GitHub
Mar 03, 2022
Browse files
Merge pull request #49 from jSTE0/gfx-unused
gfx: Remove unused settings and code
parents
218d7aea
14cb0bef
Pipeline
#93197
passed with stages
in 10 minutes and 11 seconds
Changes
6
Pipelines
10
Hide whitespace changes
Inline
Side-by-side
libretro/libretro.c
View file @
ef4fa1dd
...
...
@@ -763,7 +763,7 @@ unsigned retro_get_region (void)
return
Settings
.
PAL
?
RETRO_REGION_PAL
:
RETRO_REGION_NTSC
;
}
bool8
S9xDeinitUpdate
(
int
width
,
int
height
,
bool8
sixteen_bit
)
bool8
S9xDeinitUpdate
(
int
width
,
int
height
)
{
int
y
;
...
...
@@ -803,7 +803,6 @@ bool8 S9xDeinitUpdate(int width, int height, bool8 sixteen_bit)
/* Dummy functions that should probably be implemented correctly later. */
bool8
S9xInitUpdate
(
void
)
{
return
TRUE
;
}
bool8
S9xContinueUpdate
(
int
width
,
int
height
)
{
return
TRUE
;
}
void
S9xSetPalette
(
void
)
{}
void
S9xLoadSDD1Data
(
void
)
{}
...
...
src/gfx.c
View file @
ef4fa1dd
...
...
@@ -561,11 +561,6 @@ void S9xStartScreenRefresh()
{
if
(
IPPU
.
RenderThisFrame
)
{
if
(
!
S9xInitUpdate
())
{
IPPU
.
RenderThisFrame
=
FALSE
;
return
;
}
IPPU
.
RenderedFramesCount
++
;
IPPU
.
PreviousLine
=
IPPU
.
CurrentLine
=
0
;
IPPU
.
MaxBrightness
=
PPU
.
Brightness
;
...
...
@@ -641,8 +636,7 @@ void S9xEndScreenRefresh()
IPPU
.
ColorsChanged
=
FALSE
;
S9xDeinitUpdate
(
IPPU
.
RenderedScreenWidth
,
IPPU
.
RenderedScreenHeight
,
1
);
S9xDeinitUpdate
(
IPPU
.
RenderedScreenWidth
,
IPPU
.
RenderedScreenHeight
);
}
#ifdef LAGFIX
...
...
src/gfx.h
View file @
ef4fa1dd
...
...
@@ -313,8 +313,7 @@ extern SGFX GFX;
bool8_32
S9xGraphicsInit
();
void
S9xGraphicsDeinit
();
bool8_32
S9xInitUpdate
(
void
);
bool8_32
S9xDeinitUpdate
(
int
Width
,
int
Height
,
bool8_32
sixteen_bit
);
bool8_32
S9xDeinitUpdate
(
int
Width
,
int
Height
);
void
S9xSetPalette
();
void
S9xSyncSpeed
();
...
...
src/gfx16.c
View file @
ef4fa1dd
...
...
@@ -574,11 +574,6 @@ void S9xStartScreenRefresh()
if
(
IPPU
.
RenderThisFrame
)
{
if
(
!
S9xInitUpdate
())
{
IPPU
.
RenderThisFrame
=
FALSE
;
return
;
}
IPPU
.
RenderedFramesCount
++
;
IPPU
.
PreviousLine
=
IPPU
.
CurrentLine
=
0
;
IPPU
.
MaxBrightness
=
PPU
.
Brightness
;
...
...
@@ -661,8 +656,7 @@ void S9xEndScreenRefresh()
IPPU
.
ColorsChanged
=
FALSE
;
//}
S9xDeinitUpdate
(
IPPU
.
RenderedScreenWidth
,
IPPU
.
RenderedScreenHeight
,
1
);
S9xDeinitUpdate
(
IPPU
.
RenderedScreenWidth
,
IPPU
.
RenderedScreenHeight
);
}
#ifdef LAGFIX
...
...
src/ppu.c
View file @
ef4fa1dd
...
...
@@ -122,7 +122,6 @@ void S9xUpdateHTimer()
void
S9xFixColourBrightness
()
{
IPPU
.
XB
=
mul_brightness
[
PPU
.
Brightness
];
if
(
Settings
.
SixteenBit
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
256
;
i
++
)
...
...
src/ppu_.c
View file @
ef4fa1dd
...
...
@@ -120,7 +120,6 @@ void S9xUpdateHTimer(void)
void
S9xFixColourBrightness
(
void
)
{
IPPU
.
XB
=
mul_brightness
[
PPU
.
Brightness
];
if
(
Settings
.
SixteenBit
)
{
unsigned
i
;
...
...
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