Permalink
Browse files

Unreal: added toggle status line key, minor strings fixes

  • Loading branch information...
wbcbz7 committed May 3, 2017
1 parent 4112944 commit 5730b66cf98baab18b93d832a629af3db6905c95
Binary file not shown.
@@ -624,6 +624,8 @@ sys=rom\zxevo.rom:3
[LEDS]
; enable leds
leds=1
; enable statis line
status=1
; ay amplitude peaks on keyboard leds
KBD_AY=0
@@ -712,6 +714,7 @@ main.decfix=SHIFT GRSUB ; fine tuneup
main.incfix10=GRADD ; tuneup
main.decfix10=GRSUB ; tuneup
main.leds=GRDIV ; leds on/off
main.status=ALT GRDIV ; status line on/off
main.maxspeed=NUMLOCK ; max speed on/off
main.pokedialog=F6 ; enter poke(s)
main.starttape=F7 ; start/stop tape
@@ -43,6 +43,8 @@
<td> coarse decrease selected parameter </td> </tr>
<tr> <td> <B>{main.leds}</B> </td>
<td> toggle on-screen leds</td> </tr>
<tr> <td> <B>{main.status}</B> </td>
<td> toggle status line</td> </tr>
<tr> <td> <B>{main.maxspeed}</B> </td>
<td> toggle max. speed</td> </tr>
<tr> <td> <B>{main.pokedialog}</B> </td>
@@ -497,6 +497,7 @@ void load_config(const char *fname)
addpath(conf.appendboot);
conf.led.enabled = GetPrivateProfileInt(leds, "leds", 1, ininame);
conf.led.status = GetPrivateProfileInt(leds, "status", 1, ininame);
conf.led.flash_ay_kbd = GetPrivateProfileInt(leds, "KBD_AY", 1, ininame);
conf.led.perf_t = GetPrivateProfileInt(leds, "PerfShowT", 0, ininame);
conf.led.bandBpp = GetPrivateProfileInt(leds, "BandBpp", 512, ininame);
@@ -253,6 +253,7 @@ struct CONFIG
struct {
u8 enabled;
u8 status;
u8 flash_ay_kbd;
u8 perf_t;
u8 reserved1;
@@ -136,6 +136,12 @@ void main_leds()
sprintf(statusline, "leds %s", conf.led.enabled ? "on" : "off"); statcnt = 50;
}
void main_status()
{
conf.led.status ^= 1;
sprintf(statusline, "status line %s", conf.led.status ? "on" : "off"); statcnt = 50;
}
void main_maxspeed()
{
conf.sound.enabled ^= 1;
@@ -380,7 +386,7 @@ void main_flictoggle()
conf.noflic ^= 1;
apply_video();
sprintf(statusline, "noflic: %s", conf.noflic ? "on" : "off");
sprintf(statusline, "noflic %s", conf.noflic ? "on" : "off"); statcnt = 30;
}
void main_mouse()
@@ -15,6 +15,7 @@ void main_decfix();
void main_incfix10();
void main_decfix10();
void main_leds();
void main_status();
void main_maxspeed();
void main_selectfilter();
void main_selectdriver();
@@ -28,6 +28,7 @@ action ac_main[] =
{ "main.incfix10", main_incfix10 },
{ "main.decfix10", main_decfix10 },
{ "main.leds", main_leds },
{ "main.status", main_status },
{ "main.maxspeed", main_maxspeed },
{ "main.selectfilter", main_selectfilter },
{ "main.selectdriver", main_selectdriver },
@@ -609,7 +609,7 @@ void showleds( u32 *dst, unsigned bpitch )
pitch = bpitch / 4;
if (statcnt)
if ((statcnt) && (conf.led.status))
{
int x, y;
statcnt--;
@@ -94,7 +94,6 @@ void update_clut(u8 addr)
break;
default:
pwm_set:
r = pwm[r];
g = pwm[g];
b = pwm[b];

0 comments on commit 5730b66

Please sign in to comment.