Skip to content

Commit 75249a7

Browse files
committed
v1.13-WIP
chg: updated zxdb to latest (1.0.215) fix: fix zxdb2txt tool build (shell32.lib) fix: vs2019 build
1 parent cefad4e commit 75249a7

File tree

10 files changed

+2086
-10
lines changed

10 files changed

+2086
-10
lines changed

MAKE.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ ping -n 2 -w 1500 localhost > nul && rem wait 1s between 2 consecutive pings, so
251251
where /q rcedit-x64 || curl -LO https://github.com/electron/rcedit/releases/download/v2.0.0/rcedit-x64.exe
252252
where /q rcedit-x64 && ^
253253
rcedit-x64 "Spectral.exe" --set-file-version "!year!.!month!.!today!.!today!!month!" && ^
254-
rcedit-x64 "Spectral.exe" --set-product-version "1.12 Spectral" && ^
254+
rcedit-x64 "Spectral.exe" --set-product-version "1.13-WIP Spectral" && ^
255255
rcedit-x64 "Spectral.exe" --set-icon src\res\img\noto_1f47b.ico || goto error
256256

257257
if "%__DOTNET_PREFERRED_BITNESS%"=="32" (

src/3rd_tigr.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ int tigrGAPIBegin(Tigr* bmp);
535535
int tigrGAPIEnd(Tigr* bmp);
536536
void tigrGAPIPresent(Tigr* bmp, int w, int h);
537537

538-
#if __has_include("3rd_tigrdragndrop.h")
538+
#if defined(__has_include) && __has_include("3rd_tigrdragndrop.h")
539539
#include "3rd_tigrdragndrop.h" //< @r-lyeh
540540
#endif
541541

@@ -2626,7 +2626,9 @@ LRESULT CALLBACK tigrWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPar
26262626
win = tigrInternal(bmp);
26272627

26282628
switch (message) {
2629+
#if defined(__has_include) && __has_include("3rd_tigrdragndrop.h")
26292630
TIGR_HANDLE_DRAG_N_DROP(hWnd, wParam) // @r-lyeh
2631+
#endif
26302632

26312633
case WM_PAINT:
26322634
if (!tigrGAPIBegin(bmp)) {

src/app.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
// [ ] XL1 (Compilation)
236236
#endif
237237

238-
#define SPECTRAL "v1.12"
238+
#define SPECTRAL "v1.13-WIP"
239239

240240
#ifndef DEV
241241
#if NDEBUG >= 2
@@ -1271,9 +1271,9 @@ void draw_ui() {
12711271
ui_dialog_separator();
12721272
ui_dialog_separator();
12731273

1274-
ui_dialog_checkbox2(&ZX_RF,"<RF mode (extra CPU cost)\n","- Enable RF mode -",app_apply_shader);
1275-
ui_dialog_checkbox2(&ZX_CRT,"<CRT shader\n","- Enable CRT mode -",app_apply_shader);
1276-
ui_dialog_checkbox2(&ZX_SHADED,"<External shader ","- Use external shader -",app_apply_shader);
1274+
ui_dialog_checkbox2(&ZX_RF,"<RF mode (extra CPU cost)\n","- Enable RF mode -",(void*)app_apply_shader);
1275+
ui_dialog_checkbox2(&ZX_CRT,"<CRT shader\n","- Enable CRT mode -",(void*)app_apply_shader);
1276+
ui_dialog_checkbox2(&ZX_SHADED,"<External shader ","- Use external shader -",(void*)app_apply_shader);
12771277
ui_dialog_option(1|4,FOLDER_STR"\n\n","- Browse external .fx shader -",'SHAD',NULL);
12781278

12791279
ui_dialog_ok();
@@ -2475,7 +2475,7 @@ if( do_runahead == 0 ) {
24752475
break; case 'LENS': ZX_LENSLOK ^= 1; if(cmdarg_) ZX_LENSLOK=atoi(cmdarg_);
24762476
break; case 'BLUR': ZX_BLUR = (ZX_BLUR+10)%100; if(cmdarg_) ZX_BLUR=atoi(cmdarg_)%100;
24772477
break; case 'BLUM': ZX_BLOOM = (ZX_BLOOM+10)%100; if(cmdarg_) ZX_BLOOM=atoi(cmdarg_)%100;
2478-
break; case 'PALB': { const char *file = app_loadfile(); if( file && strendi(file, ".pal") ) if( pal_load(file) ) palette_use(ZX_PALETTE = countof(ZXPaletteNames) - 1), cmdkey = 'PAL0'; }
2478+
break; case 'PALB': { const char *file = app_loadfile(); if( file && strendi(file, ".pal") ) if( pal_load(file) ) palette_use(ZX_PALETTE = countof(ZXPalettes) - 1), cmdkey = 'PAL0'; }
24792479
break; case 'PAL': ZX_PALETTE = (ZX_PALETTE+1)%countof(ZXPalettes); if(cmdarg_) ZX_PALETTE=atoi(cmdarg_); palette_use(ZX_PALETTE);
24802480
break; case 'PALP': ZX_PALETTE_PREVIEW ^= 1; if(cmdarg_) ZX_PALETTE_PREVIEW=(ZX_PALETTE_PREVIEW * (cmdarg_[0] == '^')) ^ atoi(cmdarg_ + !isdigit(cmdarg_[0]));
24812481
break; case 'FIRE': ZX_AUTOFIRE = (ZX_AUTOFIRE+1)%4; if(cmdarg_) ZX_AUTOFIRE=atoi(cmdarg_);
@@ -2665,7 +2665,7 @@ if( do_runahead == 0 ) {
26652665
}
26662666

26672667
break; case 'PAL0':
2668-
if( cmdarg_ && strcmp(cmdarg_, "^1") ) ZX_PALETTE = atoi(cmdarg_) % countof(ZXPaletteNames);
2668+
if( cmdarg_ && strcmp(cmdarg_, "^1") ) ZX_PALETTE = atoi(cmdarg_) % countof(ZXPalettes);
26692669
if( cmdarg_ && !strcmp(cmdarg_, "^1") ) ZX_PALETTE_PREVIEW ^= 1;
26702670

26712671
int ext = countof(ZXPaletteNames) - 1, is_ext_loaded = !!ZXPalettes[ext][1]; // !!is_file(".Spectral/Spectral.pal");

src/res/pals/bin2c.exe

170 KB
Binary file not shown.

src/res/zxdb/Spectral.db.diff

Lines changed: 2072 additions & 0 deletions
Large diffs are not rendered by default.

src/res/zxdb/Spectral.db.gz

2.45 KB
Binary file not shown.

src/res/zxdb/ZXDB_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define ZXDB_VERSION "Version 1.0.214"
1+
#define ZXDB_VERSION "Version 1.0.215"

src/res/zxdb/zxdb2txt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#ifdef _WIN32
1313
#include <winsock2.h>
14+
#pragma comment(lib, "shell32")
1415
#else
1516
#include <unistd.h>
1617
#endif

src/sys_string.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <stdio.h>
55
#include <stdarg.h>
66
#include <string.h>
7-
#if defined _MSC_VER && !defined __clang__
7+
#if defined _MSC_VER && _MSC_VER > 1900 && !defined __clang__
88
__declspec(no_sanitize_address)
99
#endif
1010
char* tempvl(const char *fmt, va_list vl) {

src/zx_ula.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ rgba ZXPalettes[][64] = {
295295
},
296296
{
297297
// external. must be last entry
298+
0
298299
},
299300
};
300301

0 commit comments

Comments
 (0)