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
ae20abeb
Commit
ae20abeb
authored
Nov 13, 2015
by
aliaspider
Browse files
buildfix for __OLD_RASTER_FX__
parent
e7e3bce1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/gfx16.c
View file @
ae20abeb
...
...
@@ -3241,11 +3241,8 @@ else \
IPPU
.
PreviousLine
=
IPPU
.
CurrentLine
;
}
#ifdef __OLD_RASTER_FX__
static
void
S9xUpdateScreen_delayedRasterFx
()
// ~30-50ms! (called from FLUSH_REDRAW())
#else
#ifndef __OLD_RASTER_FX__
void
S9xUpdateScreen
()
// ~30-50ms! (called from FLUSH_REDRAW())
#endif
{
int
StartY
,
EndY
,
CurrentLine
,
CurrentROp
;
...
...
@@ -3340,9 +3337,9 @@ void S9xUpdateScreen() // ~30-50ms! (called from FLUSH_REDRAW())
PPU
.
BG
[
3
].
OffsetsChanged
=
0
;
}
#
ifdef
__OLD_RASTER_FX__
#
else //
__OLD_RASTER_FX__
static
void
S9xUpdateScreen
_normalRasterFx
()
// ~30-50ms! (called from FLUSH_REDRAW())
void
S9xUpdateScreen
()
// ~30-50ms! (called from FLUSH_REDRAW())
{
GFX
.
StartY
=
IPPU
.
PreviousLine
;
if
((
GFX
.
EndY
=
IPPU
.
CurrentLine
-
1
)
>=
PPU
.
ScreenHeight
)
GFX
.
EndY
=
PPU
.
ScreenHeight
-
1
;
...
...
@@ -3396,12 +3393,6 @@ static void S9xUpdateScreen_normalRasterFx() // ~30-50ms! (called from FLUSH_RE
PPU
.
BG
[
2
].
OffsetsChanged
=
0
;
PPU
.
BG
[
3
].
OffsetsChanged
=
0
;
}
void
S9xUpdateScreen
()
{
if
(
snesMenuOptions
.
delayedRasterFX
)
S9xUpdateScreen_delayedRasterFx
();
else
S9xUpdateScreen_normalRasterFx
();
}
#endif
// -x-
...
...
src/ppu_setppu.h
View file @
ae20abeb
...
...
@@ -1450,11 +1450,9 @@ void S9xSetPPU(uint8 Byte, uint16 Address)
if
(
Address
<=
0x2183
)
{
#ifdef __OLD_RASTER_FX__
if
(
!
snesMenuOptions
.
delayedRasterFX
)
SetPPU
[
Address
-
0x2100
](
Byte
,
Address
);
else
SetPPU
[
Address
-
0x2100
](
Byte
,
Address
);
#endif
SetPPU_delayedRasterFx
[
Address
-
0x2100
](
Byte
,
Address
);
SetPPU_delayedRasterFx
[
Address
-
0x2100
](
Byte
,
Address
);
return
;
}
else
...
...
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