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
retro8
Commits
1e3b2316
Commit
1e3b2316
authored
Mar 11, 2022
by
phcoder
Browse files
Fix several warnings
parent
0838b2b9
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/vm/gfx.h
View file @
1e3b2316
...
...
@@ -73,7 +73,7 @@ namespace retro8
};
static
color_t
colorForRGB
(
uint32_t
color
)
static
inline
color_t
colorForRGB
(
uint32_t
color
)
{
switch
(
color
&
0x00ffffff
)
{
...
...
src/vm/lua_bridge.cpp
View file @
1e3b2316
...
...
@@ -225,7 +225,6 @@ int palt(lua_State* L)
{
color_t
c
=
color_t
(
int
(
lua_tonumber
(
L
,
1
)));
int
f
=
lua_toboolean
(
L
,
2
);
palette_index_t
index
=
gfx
::
DRAW_PALETTE_INDEX
;
machine
->
memory
().
paletteAt
(
gfx
::
DRAW_PALETTE_INDEX
)
->
transparent
(
c
,
f
);
}
...
...
src/vm/machine.cpp
View file @
1e3b2316
...
...
@@ -183,7 +183,6 @@ void Machine::circfill(coord_t xc, coord_t yc, amount_t r, color_t color)
float
d
=
3
-
2
*
r
;
circFillHelper
(
xc
,
yc
,
x
,
y
,
color
);
int
ctr
=
0
;
while
(
y
>=
x
)
{
x
++
;
...
...
src/vm/sound.cpp
View file @
1e3b2316
...
...
@@ -405,9 +405,6 @@ void APU::renderSounds(int16_t* dest, size_t totalSamples)
{
handleCommands
();
constexpr
size_t
rate
=
44100
;
constexpr
int16_t
maxVolume
=
4096
;
memset
(
dest
,
0
,
sizeof
(
int16_t
)
*
totalSamples
);
for
(
size_t
i
=
0
;
i
<
CHANNEL_COUNT
;
++
i
)
...
...
src/vm/sound.h
View file @
1e3b2316
...
...
@@ -228,7 +228,7 @@ namespace retro8
public:
APU
(
Memory
&
memory
)
:
memory
(
memory
),
_soundEnabled
(
true
),
_musicEnabled
(
true
)
,
dsp
(
44100
)
{
}
APU
(
Memory
&
memory
)
:
memory
(
memory
),
dsp
(
44100
),
_soundEnabled
(
true
),
_musicEnabled
(
true
)
{
}
void
init
();
...
...
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