Skip to content

Commit 04c4927

Browse files
committed
Added package script and set "CROPPED" as the default aspect ratio
1 parent ed05e23 commit 04c4927

File tree

8 files changed

+24
-19
lines changed

8 files changed

+24
-19
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ endif
515515
ifeq ($(TARGET_LINUX),1)
516516

517517
ifeq ($(TARGET_FUNKEY),1)
518-
OD_TOOLCHAIN ?= /opt/FunKey-sdk-2.0.0/
518+
OD_TOOLCHAIN ?= /opt/FunKey-sdk/
519519
CC := $(OD_TOOLCHAIN)bin/arm-funkey-linux-musleabihf-gcc
520520
CXX := $(OD_TOOLCHAIN)bin/arm-funkey-linux-musleabihf-g++
521521
LD := $(OD_TOOLCHAIN)bin/arm-funkey-linux-musleabihf-gcc
@@ -622,8 +622,8 @@ else ifeq ($(ENABLE_SOFTRAST),1)
622622
GFX_CFLAGS += $(shell /opt/rs90-toolchain/mipsel-rs90-linux-musl/sysroot/usr/bin/sdl-config --cflags)
623623
GFX_LDFLAGS += $(shell /opt/rs90-toolchain/mipsel-rs90-linux-musl/sysroot/usr/bin/sdl-config --libs) -flto -Wl,--as-needed -Wl,--gc-sections -Wl,-O1,--sort-common -s
624624
else ifeq ($(TARGET_FUNKEY),1)
625-
GFX_CFLAGS += $(shell /opt/FunKey-sdk-2.0.0/arm-funkey-linux-musleabihf/sysroot/usr/bin/sdl-config --cflags)
626-
GFX_LDFLAGS += $(shell /opt/FunKey-sdk-2.0.0/arm-funkey-linux-musleabihf/sysroot/usr/bin/sdl-config --libs) -Wl,--as-needed -Wl,--gc-sections -Wl,-O1,--sort-common -flto -s
625+
GFX_CFLAGS += $(shell /opt/FunKey-sdk/arm-funkey-linux-musleabihf/sysroot/usr/bin/sdl-config --cflags)
626+
GFX_LDFLAGS += $(shell /opt/FunKey-sdk/arm-funkey-linux-musleabihf/sysroot/usr/bin/sdl-config --libs) -Wl,--as-needed -Wl,--gc-sections -Wl,-O1,--sort-common -flto -s
627627
GFX_LDFLAGS += -lSDL_ttf -lSDL_image
628628
else ifeq ($(TARGET_BITTBOY),1)
629629
GFX_CFLAGS += $(shell /opt/bittboy-toolchain/arm-buildroot-linux-musleabi/sysroot/usr/bin/sdl-config --cflags)

build_opk.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ $# -ne 1 ]; then
77
exit 1
88
fi
99

10-
rm -f sm64-port-"$1".opk
11-
convert textures/segment2/segment2.05A00.rgba16.png -resize 32x32! build/icon.png
12-
#mksquashfs build/us_pc/sm64.us.f3dex2e ./run.sh build/icon.png default."$1".desktop sm64-port-"$1".opk
13-
mksquashfs build/us_pc/sm64.us.f3dex2e build/icon.png default."$1".desktop sm64-port-"$1".opk
10+
rm -f *.opk
11+
#convert textures/segment2/segment2.05A00.rgba16.png -resize 32x32! build/icon.png
12+
#mksquashfs build/us_pc/sm64.us.f3dex2e ./run.sh build/icon.png default."$1".desktop sm64-port-"$1".opk
13+
mksquashfs build/us_pc/sm64.us.f3dex2e opk/sm64.png opk/sm64."$1".desktop sm64_"$1".opk

default.funkey-s.desktop

Lines changed: 0 additions & 9 deletions
This file was deleted.

opk/sm64.funkey-s.desktop

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[Desktop Entry]
2+
Name=SM64
3+
Comment=Super Mario 64 port for the FunKey S
4+
Exec=sm64.us.f3dex2e
5+
Icon=sm64
6+
Categories=games

opk/sm64.png

10.5 KB
Loading

package

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
rm -f *.opk
4+
git fetch --all
5+
git merge upstream/FunKey
6+
make distclean
7+
make -j16
8+
./build_opk.sh funkey-s

src/pc/gfx/gfx_sdl2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,8 +1099,8 @@ static void gfx_sdl_swap_buffers_begin(void) {
10991099
break;
11001100

11011101
default:
1102-
printf("Wrong aspect ratio value: %s, setting stretched\n", aspect_ratio);
1103-
aspect_ratio = ASPECT_RATIOS_TYPE_STRETCHED;
1102+
printf("Wrong aspect ratio value: %s, setting cropped\n", aspect_ratio);
1103+
aspect_ratio = ASPECT_RATIOS_TYPE_CROPPED;
11041104
break;
11051105
}
11061106

src/pc/gfx/gfx_sdl_menu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ int brightness_percentage = 0;
100100
#undef X
101101
#define X(a, b) b,
102102
const char *aspect_ratio_name[] = {ASPECT_RATIOS};
103-
int aspect_ratio = ASPECT_RATIOS_TYPE_STRETCHED;
103+
int aspect_ratio = ASPECT_RATIOS_TYPE_CROPPED;
104104
int aspect_ratio_factor_percent = 50;
105105
int aspect_ratio_factor_step = 10;
106106

0 commit comments

Comments
 (0)