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
7f53689f
Commit
7f53689f
authored
Dec 26, 2019
by
Jack
Browse files
fixes for OpenDingux first OPK release
parent
08ea5a41
Changes
7
Show whitespace changes
Inline
Side-by-side
data/default.gcw0.desktop
View file @
7f53689f
...
...
@@ -4,6 +4,7 @@ Name=retro-8
Comment=PICO-8 Emulator
Terminal=false
StartupNotify=true
Exec=retro8
Exec=retro8
%f
Icon=icon
Categories=emulator;
Categories=emulators;
X-OD-Filter=.png,.p8
data/pico8_font.png
View replaced file @
08ea5a41
View file @
7f53689f
1020 Bytes
|
W:
|
H:
645 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
projects/build_opk.sh
0 → 100755
View file @
7f53689f
rm
-rf
opk
mkdir
-p
opk
cp
opendingux/retro8 opk
cp
vs2017/retro8/api.lua opk
cp
../data/default.gcw0.desktop opk
cp
../data/pico8_font.png opk
cp
../data/icon.png opk
mksquashfs opk retro8.opk
-all-root
-noappend
-no-exports
-no-xattrs
-no-progress
>
/dev/null
# rm -rf opk
src/views/view_manager.cpp
View file @
7f53689f
...
...
@@ -28,6 +28,8 @@ void ui::ViewManager::deinit()
bool
ui
::
ViewManager
::
loadData
()
{
SDL_Surface
*
font
=
IMG_Load
(
"pico8_font.png"
);
assert
(
font
);
machine
.
font
().
load
(
font
);
_font
=
SDL_CreateTextureFromSurface
(
_renderer
,
font
);
...
...
src/vm/gfx.cpp
View file @
7f53689f
...
...
@@ -19,7 +19,7 @@ void ColorTable::init(SDL_PixelFormat* format)
void
Font
::
load
(
SDL_Surface
*
surface
)
{
assert
(
surface
->
w
==
SPRITE_WIDTH
*
FONT_GLYPHS_COLUMNS
&&
surface
->
h
==
SPRITE_HEIGHT
*
FONT_GLYPHS_ROWS
);
//
assert(surface->w == SPRITE_WIDTH * FONT_GLYPHS_COLUMNS && surface->h == SPRITE_HEIGHT * FONT_GLYPHS_ROWS);
for
(
size_t
gy
=
0
;
gy
<
FONT_GLYPHS_ROWS
;
++
gy
)
for
(
size_t
gx
=
0
;
gx
<
FONT_GLYPHS_COLUMNS
;
++
gx
)
...
...
src/vm/machine.h
View file @
7f53689f
src/vm/memory.h
View file @
7f53689f
...
...
@@ -9,6 +9,7 @@
#include <SDL.h>
#include <array>
#include <random>
#include <cstring>
namespace
retro8
{
...
...
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