Merge branch 'master' into add-squirrel

This commit is contained in:
Graham Clemo committed 2018-08-02 20:47:12 +01:00
commit 3e393ccec0
7 files changed
+42 -9

No files matched your search

+1 -1
View File
@@ -1 +1 @@
0x78, 0xda, 0xed, 0x19, 0x4b, 0x6c, 0x1b, 0xc7, 0x75, 0x1d, 0x3b, 0x6d, 0xc8, 0xb8, 0x1e, 0x0b, 0x28, 0x82, 0x7e, 0xd2, 0x66, 0xa1, 0xa6, 0x2d, 0x29, 0x91, 0x14, 0x45, 0x4a, 0xaa, 0x6b, 0x77, 0x9b, 0xca, 0x22, 0x2d, 0xa9, 0x91, 0x44, 0x43, 0x9f, 0xb8, 0x81, 0x91, 0xa8, 0x2b, 0x72, 0x57, 0x22, 0x42, 0x71, 0xd5, 0x5d, 0xd2, 0x92, 0x1c, 0x08, 0x08, 0x02, 0x04, 0x50, 0x4f, 0xee, 0xc1, 0x05, 0xaa, 0x93, 0x52, 0xe4, 0xa6, 0x5e, 0x7a, 0x31, 0x50, 0x54, 0x07, 0xa3, 0x3d, 0x06, 0x68, 0x51, 0x04, 0x45, 0x0f, 0x45, 0xd1, 0x4b, 0xd1, 0x2b, 0x3d, 0x27, 0xa3, 0x46, 0x80, 0x6c, 0xdf, 0x9b, 0x99, 0x5d, 0xee, 0x67, 0x56, 0x76, 0x00, 0x27, 0x05, 0x0a, 0xcd, 0x7a, 0x38, 0x9f, 0x37, 0xef, 0xcd, 0xfb, 0xcf, 0x8c, 0x7c, 0xe6, 0xfd, 0x2f, 0x28, 0x9f, 0xb8, 0x50, 0x06, 0x07, 0x07, 0xef, 0xec, 0xef, 0xef, 0xdf, 0xc1, 0x16, 0x86, 0x77, 0x5c, 0xea, 0x57, 0xd7, 0x7d, 0xd0, 0x1b, 0x1c, 0x74, 0x7b, 0xfb, 0xfb, 0xb4, 0x37, 0xf8, 0x2e, 0xed, 0xb9, 0x77, 0xa8, 0x4b, 0xef, 0x50, 0xea, 0x55, 0x86, 0x3f, 0x30, 0x30, 0x60, 0x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f5, 0xc3, 0x14, 0x98, 0xbd, 0x28, 0x11, 0x74, 0xb8, 0x8d, 0xc3, 0x70, 0xc1, 0x14, 0xea, 0x87, 0x26, 0xd3, 0x77, 0xa9, 0xb7, 0x56, 0x89, 0xe1, 0xbb, 0x81, 0x7d, 0xa2, 0xfe, 0xd1, 0xdf, 0x57, 0x91, 0xf2, 0x1f, 0xdc, 0x5f, 0Line truncated
BIN
View File
Binary file not shown.
+11
View File
@@ -86,6 +86,16 @@ static void readConfigCrtMonitor(Config* config, lua_State* lua)
lua_pop(lua, 1); lua_pop(lua, 1);
} }
static void readConfigUiScale(Config* config, lua_State* lua)
{
lua_getglobal(lua, "UI_SCALE");
if(lua_isinteger(lua, -1))
config->data.uiScale = lua_tointeger(lua, -1);
lua_pop(lua, 1);
}
static void readConfigCrtShader(Config* config, lua_State* lua) static void readConfigCrtShader(Config* config, lua_State* lua)
{ {
lua_getglobal(lua, "CRT_SHADER"); lua_getglobal(lua, "CRT_SHADER");
@@ -277,6 +287,7 @@ static void readConfig(Config* config)
readConfigNoSound(config, lua); readConfigNoSound(config, lua);
readConfigShowSync(config, lua); readConfigShowSync(config, lua);
readConfigCrtMonitor(config, lua); readConfigCrtMonitor(config, lua);
readConfigUiScale(config, lua);
readTheme(config, lua); readTheme(config, lua);
} }
+20 -1
View File
@@ -3089,6 +3089,24 @@ static bool cmdInjectMap(Console* console, const char* param, const char* name)
return done; return done;
} }
static bool checkUIScale(Console* console, const char* param, const char* value)
{
bool done = false;
if(strcmp(param, "-uiscale") == 0)
{
s32 scale = atoi(value);
if(scale > 0)
{
console->config->data.uiScale = scale;
done = true;
}
}
return done;
}
void initConsole(Console* console, tic_mem* tic, FileSystem* fs, Config* config, s32 argc, char **argv) void initConsole(Console* console, tic_mem* tic, FileSystem* fs, Config* config, s32 argc, char **argv)
{ {
if(!console->buffer) console->buffer = malloc(BufferSize(tic)); if(!console->buffer) console->buffer = malloc(BufferSize(tic));
@@ -3191,7 +3209,8 @@ void initConsole(Console* console, tic_mem* tic, FileSystem* fs, Config* config,
if(cmdInjectCode(console, first, second) if(cmdInjectCode(console, first, second)
|| cmdInjectSprites(console, first, second) || cmdInjectSprites(console, first, second)
|| cmdInjectMap(console, first, second)) || cmdInjectMap(console, first, second)
|| checkUIScale(console, first, second))
argp |= mask; argp |= mask;
} }
} }
+6 -5
View File
@@ -24,7 +24,7 @@
#include "fs.h" #include "fs.h"
#define DIALOG_WIDTH (TIC80_WIDTH/2) #define DIALOG_WIDTH (TIC80_WIDTH/2)
#define DIALOG_HEIGHT (TIC80_HEIGHT/2-TOOLBAR_SIZE) #define DIALOG_HEIGHT (TIC80_HEIGHT/2)
static const char* Rows[] = static const char* Rows[] =
{ {
@@ -32,7 +32,8 @@ static const char* Rows[] =
"RESET GAME", "RESET GAME",
"GAMEPAD CONFIG", "GAMEPAD CONFIG",
"", "",
"EXIT TO TIC-80", "CLOSE GAME",
"QUIT TIC-80",
}; };
static void resumeGame(Menu* menu) static void resumeGame(Menu* menu)
@@ -56,12 +57,12 @@ static void gamepadConfig(Menu* menu)
menu->gamepad.tab = 0; menu->gamepad.tab = 0;
} }
static void exitToTIC(Menu* menu) static void closeGame(Menu* menu)
{ {
exitFromGameMenu(); exitFromGameMenu();
} }
static void(*const MenuHandlers[])(Menu*) = {resumeGame, resetGame, gamepadConfig, NULL, exitToTIC}; static void(*const MenuHandlers[])(Menu*) = {resumeGame, resetGame, gamepadConfig, NULL, closeGame, exitStudio};
static tic_rect getRect(Menu* menu) static tic_rect getRect(Menu* menu)
{ {
@@ -252,7 +253,7 @@ static void drawGamepadMenu(Menu* menu)
static const char Label[] = "BACK"; static const char Label[] = "BACK";
tic_rect rect = {dlgRect.x + 25, dlgRect.y + 49, (sizeof(Label)-1)*tic->font.width, tic->font.height}; tic_rect rect = {dlgRect.x + 25, dlgRect.y + 56, (sizeof(Label)-1)*tic->font.width, tic->font.height};
bool over = false; bool over = false;
bool down = false; bool down = false;
+2 -2
View File
@@ -12,7 +12,6 @@
#include <emscripten.h> #include <emscripten.h>
#endif #endif
#define STUDIO_UI_SCALE 3
#define STUDIO_PIXEL_FORMAT GPU_FORMAT_RGBA #define STUDIO_PIXEL_FORMAT GPU_FORMAT_RGBA
#define TEXTURE_SIZE (TIC80_FULLWIDTH) #define TEXTURE_SIZE (TIC80_FULLWIDTH)
#define OFFSET_LEFT ((TIC80_FULLWIDTH-TIC80_WIDTH)/2) #define OFFSET_LEFT ((TIC80_FULLWIDTH-TIC80_WIDTH)/2)
@@ -1180,7 +1179,8 @@ static s32 start(s32 argc, char **argv, const char* folder)
platform.studio = studioInit(argc, argv, platform.audio.spec.freq, folder, &systemInterface); platform.studio = studioInit(argc, argv, platform.audio.spec.freq, folder, &systemInterface);
enum{Width = TIC80_FULLWIDTH * STUDIO_UI_SCALE, Height = TIC80_FULLHEIGHT * STUDIO_UI_SCALE}; const s32 Width = TIC80_FULLWIDTH * platform.studio->config()->uiScale;
const s32 Height = TIC80_FULLHEIGHT * platform.studio->config()->uiScale;
platform.window = SDL_CreateWindow( TIC_TITLE, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, platform.window = SDL_CreateWindow( TIC_TITLE, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
Width, Height, SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE| SDL_WINDOW_OPENGL); Width, Height, SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE| SDL_WINDOW_OPENGL);
+2
View File
@@ -82,6 +82,8 @@ typedef struct
const char* crtShader; const char* crtShader;
const tic_cartridge* cart; const tic_cartridge* cart;
s32 uiScale;
} StudioConfig; } StudioConfig;
typedef struct typedef struct