Skip to content

Commit

Permalink
Add OGU support
Browse files Browse the repository at this point in the history
  • Loading branch information
r3claimer committed Mar 30, 2023
1 parent c201a81 commit b8f2ead
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TARGET = fileman
DEVICE ?= HANDHELD
DEVICE ?= RK3566
DEVICE ?= RK3588
DEVICE ?= OGU
DEVICE ?= PC

START_PATH ?= "/"
Expand Down
16 changes: 16 additions & 0 deletions src/def.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,22 @@
#define KEYBOARD_KEY_SPACING 10
#define KEYBOARD_SYMBOL_SIZE 58

// Parameters for OGU
#if defined(DEVICE_OGU)
#define SCREEN_WIDTH 854
#define SCREEN_HEIGHT 480
#define HARDWARE_ACCELERATION 0
#define FULLSCREEN 1
#define FONT_NAME "NotoSans-Regular.ttf"
#define FONT_NAME_MONO "NotoSansMono-Regular.ttf"
#define FONT_SIZE 20
#define LINE_HEIGHT 32
#define ICON_SIZE 24
#define MARGIN_X 10
#define KEYBOARD_MARGIN 8
#define KEYBOARD_KEY_SPACING 4
#define KEYBOARD_SYMBOL_SIZE 24

// Paramaters for desktop PC
#else
#define SCREEN_WIDTH 640
Expand Down

0 comments on commit b8f2ead

Please sign in to comment.