rockbox/apps/plugins
Franklin Wei 4dcd1a9ed8 puzzles: load cached fonts unconditionally
This works around an odd issue in Mines involving the zoom feature. The
chain of events leading to it is rather convoluted:

1. No save game is found, so no fonts are loaded from disk.
2. A new game is started.
3. The user selects the "Zoom" option.
4. The allocation of the zoom framebuffer causes the malloc code to grab
   the audiobuffer. This causes all further font_load() calls to FAIL, due
   to buflib allocations no longer working.
5. The user goes back to the normal view and uncovers a square.
6. Font loading fails, causing the drawing code to fall back to the system
   font.
7. An unrelated bug (not yet tracked down) causes font_get(FONT_UI) to
   return a different font.
8. font_getstringsize() returns the right size of the "wrong" font, leading
   to centering issues upon rb_draw_text().

The real solution to this would be to fix font_get(), but this fix should
prevent the issue from happening if Mines has been run and saved at least
once before.

Change-Id: Ib9ad51376eeb3ca1113a1f3786124b612db88cd7
2020-07-07 21:25:27 +00:00
..
beatbox Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
bitmaps 2048: use larger bitmaps on 96x96 screens (e.g. Clip Zip) 2020-07-06 17:39:47 +00:00
chessbox av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
clock Make fixepoint.c as a shared library (libfixedpoint.a). 2013-04-26 00:11:04 +02:00
doom pdbox/doom: Use -Wno-stringop-truncation with GCC >=8 2020-05-18 00:47:04 +02:00
fft av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
fractals fractals: Clean up ARM asm 2020-06-30 16:30:35 +00:00
frotz Plugin Frotz: Match keymap and manual 2016-01-09 19:46:21 +01:00
goban xDuoo X3II and X20 port 2020-04-06 18:15:41 +02:00
imageviewer imageviewer: Fix potential null pointer dereference 2020-06-30 21:12:12 +00:00
lib button: allow disabling software poweroff 2020-06-27 13:27:40 -04:00
lua lua RockEv timing fixes 2020-06-23 11:17:17 +00:00
lua_scripts Lua add metadata and settings reading helper module 2019-09-07 03:10:59 +02:00
midi xDuoo X3II and X20 port 2020-04-06 18:15:41 +02:00
mikmod mikmod: Use -Wno-stringop-truncation with GCC >=8 2020-05-18 01:15:42 +02:00
mpegplayer xDuoo X3II and X20 port 2020-04-06 18:15:41 +02:00
pacbox xDuoo X3II and X20 port 2020-04-06 18:15:41 +02:00
pdbox pdbox/doom: Use -Wno-stringop-truncation with GCC >=8 2020-05-18 00:47:04 +02:00
pictureflow Pictureflow Whitespace Cleanup 2020-06-26 07:08:32 -04:00
puzzles puzzles: load cached fonts unconditionally 2020-07-07 21:25:27 +00:00
reversi xDuoo X3II and X20 port 2020-04-06 18:15:41 +02:00
rockboy xDuoo X3II and X20 port 2020-04-06 18:15:41 +02:00
sdl SDL: Silence a large number of compile warnings (WIP) 2020-04-11 19:29:47 +02:00
searchengine
shortcuts
sudoku av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
text_viewer av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
xworld Agptek Rocker: Build plugins 2018-06-12 10:31:15 +02:00
zxbox av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
2048.c 2048: Cleanup 2015-04-19 17:48:12 +02:00
alarmclock.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
alpine_cdc.c Alpine CD changer emulation: Fix logic error in detecting non-playing status 2020-04-17 04:33:17 +02:00
battery_bench.c xDuoo X3II and X20 port 2020-04-06 18:15:41 +02:00
bench_mem_jpeg.c
bench_scaler.c
blackjack.c xDuoo X3II and X20 port 2020-04-06 18:15:41 +02:00
boomshine.lua lua boomshine update to use rockevents library 2020-06-25 13:50:57 +00:00
bounce.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
brickmania.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
bubbles.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
BUILD_OVERLAY
calculator.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
calendar.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
CATEGORIES lua add demo scripts, atexit handler, gui_scrollbar_draw 2019-07-29 02:51:29 -05:00
chessbox.c
chessclock.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
chip8.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
chopper.c xDuoo X3II and X20 port 2020-04-06 18:15:41 +02:00
clix.c xDuoo X3II and X20 port 2020-04-06 18:15:41 +02:00
codebuster.c
credits.c
credits.pl
crypt_firmware.c
cube.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
demystify.c
dice.c FS#7704 - Talk support for plugins 2019-07-20 08:48:35 +02:00
dict.c
disktidy.c Fixed disktidy bug and added a couple of new features to disktidy. 2014-10-09 09:43:40 +02:00
disktidy.config Revert r31239 and r31250. Selecting ALL in disktidy used to be generally safe for most people, and these changes change that, making it easy to delete most or all of a user's music. This is a *very* bad idea. 2011-12-26 00:03:28 +00:00
duke3d.c Port of Duke Nukem 3D 2017-12-23 21:01:26 -05:00
elfdep.pl
euroconverter.c Remove build conditions inside .c plugin files 2010-08-25 19:00:58 +00:00
fire.c lcd-24bit: Introduce a 24-bit mid-level LCD driver 2014-06-21 00:15:53 +02:00
fireworks.c FS#7704 - Talk support for plugins 2019-07-20 08:48:35 +02:00
firmware_flash.c archos: Shut up a compiler warning by marking an inline function as static 2020-04-01 03:18:41 +02:00
flipit.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
goban.c
greyscale.c Add cleaned-up xDuoo X3 support 2018-07-28 10:56:31 -04:00
helloworld.c
helloworld.lua
invadrox.c xDuoo X3II and X20 port 2020-04-06 18:15:41 +02:00
iriver_flash.c
iriverify.c
jackpot.c plugins: another round of making local things static and adding missing #includes 2011-12-28 11:32:13 +00:00
jewels.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
keybox.c Keybox: display the entry name along with the password 2017-08-27 15:43:11 -04:00
lamp.c Lamp plugin: Allow toggling the button light using "select". 2015-02-22 12:22:40 +01:00
logo.c Fix some build errors and warnings. 2014-06-21 00:49:05 +02:00
lrcplayer.c Fix dangerous casts 2017-02-04 17:24:47 +01:00
lua_scripts.lua lua add demo scripts, atexit handler, gui_scrollbar_draw 2019-07-29 02:51:29 -05:00
main_menu_config.c Speech enabled main menu config plugin 2019-08-05 02:33:37 +02:00
matrix.c matrix plugin: Fix out-of-bounds array access. Unify for-loop style. 2012-06-03 23:37:33 +02:00
maze.c
mazezam.c
md5sum.c
metronome.c YH8xx,YH9xx: Keymap improvement 2015-11-15 23:46:39 +01:00
minesweeper.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
mosaique.c Plugin mosaique PLA integration (code + manual) 2012-03-03 16:37:47 +01:00
mp3_encoder.c xDuoo X3II and X20 port 2020-04-06 18:15:41 +02:00
nim.c
oscilloscope.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
otp.c Undo hacks to meant to get around string formatting limitations 2017-11-21 05:01:14 -05:00
pegbox.c xDuoo X3II and X20 port 2020-04-06 18:15:41 +02:00
periodic_table.c Add tentative new element names, IUPAC approval expected around November 2016-12-04 18:05:51 +01:00
pictureflow.c
pitch_detector.c Revise the PCM callback system after adding multichannel audio. 2012-03-03 07:23:38 +01:00
pixel-painter.lua Lua fix pixel-painter score save 2018-11-05 07:18:08 +01:00
plasma.c lcd-24bit: Introduce a 24-bit mid-level LCD driver 2014-06-21 00:15:53 +02:00
plugin.lds iPod Classic: disable IRAM1 2018-07-30 18:50:27 -04:00
plugin_crt0.c
plugins.make Use full_path_subst on more places, to avoid replacing the wrong occurrences in 2019-07-28 21:00:57 +02:00
pong.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
properties.c Voice enable properties plugin 2019-08-05 04:10:25 +02:00
quake.c sdl: Fix path substitution in log messages, fix game names in comments 2019-08-22 22:00:43 +03:00
random_folder_advance_config.c plugins: Add plugin_release_audio_buffer(). 2014-04-09 09:04:10 +02:00
remote_control.c
resistor.c scroll_engine: Rename scroll_stop* functions to be more consistent with the lcd api. 2013-12-14 23:11:30 +01:00
robotfindskitten.c robotfindskitten: clear message line before cinema scene 2019-07-28 01:30:29 +02:00
rockblox.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
rockblox1d.c rockblox1d's plugin PLA integration (main code + manual) 2012-02-18 23:57:22 +01:00
rockbox-fonts.config
rockbox_flash.c Improve rockbox_flash messages 2012-02-05 16:26:09 +01:00
rockboy.c
rocklife.c
rockpaint.c Add Xuelin iHIFI 770/770C/800 support 2019-01-02 08:10:01 -05:00
search.c
settings_dumper.c EQ settings: Rework the settings to clean up the config file. 2013-02-09 13:05:32 +01:00
shopper.c Shopper: slightly improve plugin and manual 2015-09-24 23:15:24 +02:00
sliding_puzzle.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
snake.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
snake2.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
snake2.levels
snow.c Plugin snow PLA integration (code + manual) 2012-03-03 10:48:22 +01:00
sokoban.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
sokoban.levels
solitaire.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
sort.c
SOURCES Add support for Windows shortcuts (*.lnk files) 2019-08-11 22:26:49 +02:00
SOURCES.app_build iBasso DX50/DX90: Major code cleanup and reorganization. 2015-02-02 21:57:55 +01:00
spacerocks.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
speedread.c Remove redundant code 2017-03-15 18:14:13 -04:00
splitedit.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
star.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
starfield.c Clean up peak calculating code. 2012-05-02 20:53:07 -04:00
stats.c stats's plugin PLA integration (main code + manual) 2012-02-22 09:15:50 +01:00
stopwatch.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
stopwatch.lua stopwatch.lua: Improve button layout. Enable on touchscreen RaaA. 2012-01-29 22:35:49 +01:00
SUBDIRS Enable SDL for native MIPS and hosted targets. 2020-04-05 01:34:24 +02:00
SUBDIRS.app_build lua add demo scripts, atexit handler, gui_scrollbar_draw 2019-07-29 02:51:29 -05:00
superdom.c Silence a build warning in the superdom plugin. 2020-04-13 17:26:22 -04:00
test_boost.c fix plugin test_boost not properly unboosting 2020-05-24 13:43:30 +02:00
test_codec.c Get test_codec synced with changes in 6c868dd 2017-12-08 21:32:54 -05:00
test_core_jpeg.c
test_disk.c Align test_disk buffer for DMA. 2016-04-01 19:57:44 +02:00
test_fps.c test_X plugins PLA integration 2012-03-03 19:55:51 +01:00
test_gfx.c test_gfx: Add benchmark for put_line(). 2014-01-07 14:13:41 +01:00
test_grey.c test_X plugins PLA integration 2012-03-03 19:55:51 +01:00
test_greylib_bitmap_scale.c test_X plugins PLA integration 2012-03-03 19:55:51 +01:00
test_mem.c Fix IRAM overflow introduced in 7a8c9daf7e 2019-05-31 10:42:40 +02:00
test_mem_jpeg.c
test_resize.c
test_sampr.c Revise the PCM callback system after adding multichannel audio. 2012-03-03 07:23:38 +01:00
test_scanrate.c test_X plugins PLA integration 2012-03-03 19:55:51 +01:00
test_touchscreen.c Zen XFi2: Enable Plugins 2018-04-03 11:34:01 +02:00
test_viewports.c lcd-16bit: Remove {lss,lse,lst}_pattern fields from struct viewport. 2014-01-07 14:13:48 +01:00
test_viewports.lua
text_editor.c Fix Samsung YH92X/YH820 keypad conditional in text_editor 2017-05-06 21:34:21 -04:00
theme_remove.c
vbrfix.c Improvements for vbrfix plugin: 2019-08-13 17:07:07 +02:00
video.c Tweak paramters of mp3_play_data and callback. 2012-03-04 14:50:47 -05:00
viewers.config Add support for Windows shortcuts (*.lnk files) 2019-08-11 22:26:49 +02:00
vu_meter.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
wav2wv.c
wavplay.c
wavrecord.c FS#7704 - Talk support for plugins 2019-07-20 08:48:35 +02:00
wavview.c
windows_lnk.c plugin windows_lnk: fix missing return-on-error 2020-07-07 02:36:33 +00:00
wolf3d.c sdl: Fix path substitution in log messages, fix game names in comments 2019-08-22 22:00:43 +03:00
wormlet.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
xobox.c av300: Continue cleaning out keymaps. 2020-04-13 22:59:29 +02:00
zxbox.c