Pk11
77fc7af2f2
Use macro for UTF-8 byte count
...
Makes it more clear why all of the buffers are being multiplied by 4
Fix UTF-8 bytesize macro
Before UTF_BUFFER_BYTESIZE(str_width - 10)] would multiply the 10, not the whole number, by UTF_MAX_BYTES_PER_RUNE
Do (rune_count + 1) * 4 in UTF-8 bytesize macro
Fix Resize/Truncate String snprintf size
Before it would break if the last character was multi-byte
2021-11-14 22:14:53 +01:00
Pk11
b366200d4b
Switch to a RIFF font format
...
Fix height of ラ character
I accidentally made it 1px too tall before
Add Cyrillic to default font
Make Я more like latin R
Right after I commit, looking at my screenshot I notice I forgot to tweak the Я to be more angled like this font's latin R...
Improve the default font's Kana
derp fix
Properly handle invalid UTF-8
Fix conversion PBMs with non-byte aligned rows
Rename font extension to .frf
For Font RiFf
Re-add PBM font support
Default converting to CP-437 and try guess size
Revert "Default converting to CP-437 and try guess size"
Reverts 2c9a47d224b28cbb51a3ee335fd9970265201b72 as I think the old behaviour works better given PBM font support being kept
Re-add mapping file for CP-437
Automatically use mapping file with same name as image
ex. for "font_6x10.pbm" it will use "font_6x10.txt" in the same directory
2021-11-14 22:13:55 +01:00
Pk11
13eb4f8869
Proper handling of UTF-8
...
Note: This commit may be slightly broken, I'm just splitting up it and the next one at the end.
2021-11-14 22:13:32 +01:00
d0k3
294890057f
Display full filename in file info (for long filenames)
2021-03-14 14:56:35 +01:00
d0k3
30c5e1fd67
Add firstrun instructions to software keyboard
...
Adresses #601
2021-02-23 16:10:10 +01:00
Wolfvak
9ecb90a2ba
make interrupt handlers more lazy, most processing is done in interruptible context now
...
- completely moved MCU interrupt handling outside of the critical section
- refactored a bit of the PXI code and command names
- merge the I2C read and write cmds to be one
- remove SET_VMODE cmd, now it's always initialized to BGR565 on boot and to RGB565 on firmlaunch
- atomic-ize more stuff
2021-02-21 14:40:33 +01:00
d0k3
8114a0bd26
Higher level warning for editing 0:/Nintendo
3DS/ folder
2021-02-15 17:58:59 +01:00
d0k3
e41b098843
Misc code improvements
2021-02-05 13:16:01 +01:00
d0k3
608cf39e12
Fix #601
...
This adds SELECT as a shortcut ot the old button based input tool in the software keyboard
2020-11-11 00:07:09 +01:00
d0k3
f2876b2a61
Fix #628
2020-10-28 00:01:36 +01:00
Gabriel Marcano
d010f2858b
Remove trailing white space
...
- Removed trailing whitespace from all source code files (.c, .h. and
.s) and the README.md
2020-08-26 23:01:58 +02:00
Wolfvak
5905fb84fb
removed the cross allocator, use the shared memory region instead for I2C and NVRAM transfers
2020-07-19 11:44:03 -03:00
santiago
244d24ee2a
fix compiling on dkA r54, libc is bloaty so please stick with r53 for now
2020-06-01 17:13:30 -03:00
luigoalma
d27cfc71e1
Indentation fixes
...
Indentation fixes everywhere
(mostly anyway under arm9/source/)
And some other tab to spaces
2020-03-28 07:05:42 -03:00
d0k3
cfe535f20b
Fix #551
2019-10-28 14:16:55 -03:00
d0k3
00c0dac479
Fix notification LED color
2019-10-05 20:00:14 +02:00
d0k3
1633961707
Allow game icons as preview for scripting
2019-10-03 17:04:35 -03:00
d0k3
85c43795c3
Partially fix #537 (two fixes make one)
2019-10-03 17:04:35 -03:00
Wolfvak
47312797e2
Partially fix #537
...
if size was zero, the inputstr array could contain stack garbage
2019-10-03 17:04:35 -03:00
Wolfvak
3e25393284
fix #539
...
saner new3DS vs old3DS detection
2019-09-29 19:53:28 +02:00
Wolfvak
2ef408f4af
fix broken cross-buffer assumption, check nvram reads
2019-09-29 19:53:28 +02:00
d0k3
e6b63f328b
Store manual calibration data in a support file
2019-09-29 19:53:28 +02:00
Wolfvak
524a86e9a4
fix issue #512
2019-09-29 19:53:27 +02:00
Wolfvak
d6c6f56526
fix compilation warnings due to unaligned packed structures in newer gcc
2019-09-29 19:53:27 +02:00
d0k3
3cbbd53850
Fix the software keyboard
...
Fixes #501
2019-07-01 23:03:35 +02:00
d0k3
4e61bcaa50
Mark the cart drive as uninitialized when uninitialized
...
Fixes #492
2019-06-30 23:50:55 +02:00
d0k3
ccb8531ce6
swkbd: Fix deleting the last char in a string
2019-06-30 23:50:54 +02:00
d0k3
dc9dc794b0
Added brightness setting dialogue to HOME more.. menu, some minor adaptions
2019-06-30 23:50:44 +02:00
Wolfvak
bd74ad00d8
add initial brightness config dialog, currently inaccessible
2019-06-07 17:13:42 -03:00
d0k3
40b4e3f541
Use software keyboard instead of string input prompt
2019-06-03 02:28:27 +02:00
d0k3
ee86ffeb03
Remove old touch playground code
2019-06-03 02:28:27 +02:00
d0k3
73e3a18ea8
Remove legacy A9LH support
2019-06-03 02:28:27 +02:00
d0k3
ae5584aca0
Fix displaying alphabet preview in input tool
2019-06-03 02:28:27 +02:00
Wolfvak
b45bb966df
fixed an off by one error in the UI code that caused all rectangles to be drawn one pixel lower than indicated
2019-06-03 02:28:27 +02:00
Wolfvak
f179caaef3
removed useless stack clearing and whitespace
2019-06-03 02:28:27 +02:00
Wolfvak
8b098fa91a
improvements over the last couple of RGB565 related commits
2019-06-03 02:28:26 +02:00
Wolfvak
256f2465d8
converted all bitmaps to RGB565
2019-06-03 02:28:26 +02:00
Wolfvak
a42dbedf82
fix screenshot functionality
2019-06-03 02:28:26 +02:00
Wolfvak
6823e15584
enable write buffering on VRAM, optimize some UI drawing algorithms
2019-06-03 02:28:25 +02:00
Wolfvak
bb5182cae3
skip unnecessary fixed point conversion + multiplication in touchscreen reading code
2019-06-03 02:28:25 +02:00
Wolfvak
50e97d2dab
Moved most things to RGB565
2019-06-03 02:28:25 +02:00
d0k3
dbd8b8aca8
Included software keyboard in testing
2019-06-03 02:28:25 +02:00
d0k3
ca8c2070f5
Change how TouchboxGet() works
2019-06-03 02:28:25 +02:00
d0k3
f4fc17f145
Tweak button delay in hid.c
2019-06-03 02:28:24 +02:00
d0k3
c3152838db
Move touchbox functions to hid.c / hid.h
2019-06-03 02:28:24 +02:00
d0k3
ff9fde1561
With shell closed, use the LED to signal finished operations
2019-06-03 02:27:44 +02:00
d0k3
df21331218
New & improved touchscreen playground
2019-06-03 02:27:44 +02:00
Wolfvak
77f857ab64
- added way to prevent a race condition when reading the touchscreen values
...
- simplified CODEC init and read code
- fixed I2C register
thanks to @profi200 for the last two points
2019-06-03 02:27:44 +02:00
d0k3
54caa3588e
Added touchscreen calibration from NVRAM (thanks @wolfvak)
2019-06-03 02:27:44 +02:00
d0k3
36c03e578c
Enable screenshots in touch test functions
2019-06-03 02:27:44 +02:00