mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-01-01 14:33:34 +01:00
topic: return to the 5x7 font as default
The 5x6 font is less readable than I hoped, so too bad.
This commit is contained in:
parent
19cdae4953
commit
9b24267488
8 changed files with 20 additions and 22 deletions
14
configure
vendored
14
configure
vendored
|
@ -141,6 +141,10 @@ for arg; do case "$arg" in
|
||||||
echo "warning: support for '-timer-slots' has been removed";;
|
echo "warning: support for '-timer-slots' has been removed";;
|
||||||
-events-queue-size=*)
|
-events-queue-size=*)
|
||||||
echo "warning: support for '-events-queue-size' has been removed";;
|
echo "warning: support for '-events-queue-size' has been removed";;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "error: unrecognized argument '$arg'";
|
||||||
|
fail=true;;
|
||||||
esac; done
|
esac; done
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -152,6 +156,11 @@ if [[ -z "$target" ]]; then
|
||||||
fail=true;
|
fail=true;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if $fail; then
|
||||||
|
echo "note: output file $output has not been changed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# If no prefix is specified, install to the GCC's build folder
|
# If no prefix is specified, install to the GCC's build folder
|
||||||
if [[ -z "$prefix" ]]; then
|
if [[ -z "$prefix" ]]; then
|
||||||
echo "No prefix specified, let's ask the compiler:"
|
echo "No prefix specified, let's ask the compiler:"
|
||||||
|
@ -195,11 +204,6 @@ output_config()
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
|
||||||
if $fail; then
|
|
||||||
echo "note: output file $output has not been changed."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
output_config > $output
|
output_config > $output
|
||||||
|
|
||||||
src="Makefile"
|
src="Makefile"
|
||||||
|
|
|
@ -53,7 +53,7 @@ src := $(shell find ../src \
|
||||||
src_obj := $(foreach s,$(src),$(call src2obj,$s))
|
src_obj := $(foreach s,$(src),$(call src2obj,$s))
|
||||||
|
|
||||||
# Files with special handling
|
# Files with special handling
|
||||||
spe := ../src/font5x6.png
|
spe := ../src/font5x7.png
|
||||||
spe_obj := version.o $(foreach s,$(spe),$(call src2obj,$s))
|
spe_obj := version.o $(foreach s,$(spe),$(call src2obj,$s))
|
||||||
|
|
||||||
# All object files
|
# All object files
|
||||||
|
@ -103,10 +103,10 @@ src/%.c.o: ../src/%.c src/%.c.d
|
||||||
$(call cmd_b,gcc,$*.c) $(gcc) -c $< -o $@ $(dflags) $(cflags)
|
$(call cmd_b,gcc,$*.c) $(gcc) -c $< -o $@ $(dflags) $(cflags)
|
||||||
|
|
||||||
# Special files
|
# Special files
|
||||||
$(call src2obj,../src/font5x6.png): ../src/font5x6.png
|
$(call src2obj,../src/font5x7.png): ../src/font5x7.png
|
||||||
@ mkdir -p $(dir $@)
|
@ mkdir -p $(dir $@)
|
||||||
$(call cmd_m,fxconv,font5x6.png)$(conv) -f $< -o $@ name:gint_font5x6 \
|
$(call cmd_m,fxconv,font5x7.png)$(conv) -f $< -o $@ name:gint_font5x7 \
|
||||||
charset:ascii grid.size:5x6 grid.padding:1 grid.border:0
|
charset:ascii grid.size:5x7 grid.padding:1 grid.border:0
|
||||||
|
|
||||||
# Version symbol. ld generates a .stack section for unknown reasons; I remove
|
# Version symbol. ld generates a .stack section for unknown reasons; I remove
|
||||||
# it in the linker script.
|
# it in the linker script.
|
||||||
|
|
|
@ -43,7 +43,7 @@ static void print(int x, int y, const char *format, ...)
|
||||||
vsprintf(str + 2, format, args);
|
vsprintf(str + 2, format, args);
|
||||||
|
|
||||||
#ifdef FX9860G
|
#ifdef FX9860G
|
||||||
dtext(6 * (x-1) + 1, 7 * (y-1), str + 2, color_black, color_white);
|
dtext(6 * (x-1) + 1, 8 * (y-1), str + 2, color_black, color_white);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef FXCG50
|
#ifdef FXCG50
|
||||||
|
@ -154,7 +154,7 @@ void bootlog_driver(const char *drv, const char *status)
|
||||||
|
|
||||||
static int mx = 1, my = 6;
|
static int mx = 1, my = 6;
|
||||||
if(mx + len > 22) mx = 1, my++;
|
if(mx + len > 22) mx = 1, my++;
|
||||||
if(my > 9) return;
|
if(my > 8) return;
|
||||||
|
|
||||||
print(mx, my, "%s", status);
|
print(mx, my, "%s", status);
|
||||||
mx += len + 1;
|
mx += len + 1;
|
||||||
|
|
|
@ -11,22 +11,16 @@
|
||||||
.section .gint.blocks, "ax"
|
.section .gint.blocks, "ax"
|
||||||
.align 4
|
.align 4
|
||||||
|
|
||||||
/* SH7305-TYPE DEBUG EXCEPTION HANDLER - 26 BYTES */
|
/* SH7305-TYPE DEBUG EXCEPTION HANDLER */
|
||||||
|
|
||||||
_exch_entry_7705:
|
_exch_entry_7705:
|
||||||
_exch_entry_7305:
|
_exch_entry_7305:
|
||||||
mov.l 1f, r0
|
mov.l 1f, r0
|
||||||
mov.l @r0, r4
|
mov.l @r0, r4
|
||||||
|
|
||||||
sts.l pr, @-r15
|
|
||||||
mov.l 2f, r0
|
|
||||||
jsr @r0
|
|
||||||
nop
|
|
||||||
lds.l @r15+, pr
|
|
||||||
rte
|
rte
|
||||||
nop
|
nop
|
||||||
|
|
||||||
.zero 6
|
.zero 20
|
||||||
|
|
||||||
2: .long _debug_exc
|
|
||||||
1: .long 0xff000024
|
1: .long 0xff000024
|
||||||
|
|
BIN
src/font5x6.png
BIN
src/font5x6.png
Binary file not shown.
Before Width: | Height: | Size: 754 B |
BIN
src/font5x7.png
Normal file
BIN
src/font5x7.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.4 KiB |
|
@ -5,14 +5,14 @@
|
||||||
#include "topti-asm.h"
|
#include "topti-asm.h"
|
||||||
|
|
||||||
/* Default font */
|
/* Default font */
|
||||||
extern font_t gint_font5x6;
|
extern font_t gint_font5x7;
|
||||||
font_t const * topti_font = &gint_font5x6;
|
font_t const * topti_font = &gint_font5x7;
|
||||||
|
|
||||||
/* dfont() - set the default font for text rendering */
|
/* dfont() - set the default font for text rendering */
|
||||||
GSECTION(".pretext")
|
GSECTION(".pretext")
|
||||||
void dfont(font_t const * font)
|
void dfont(font_t const * font)
|
||||||
{
|
{
|
||||||
topti_font = font ? font : &gint_font5x6;
|
topti_font = font ? font : &gint_font5x7;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* enum charset: Available character set decoders
|
/* enum charset: Available character set decoders
|
||||||
|
|
Loading…
Reference in a new issue