Commit Graph

12289 Commits

Author SHA1 Message Date
twinaphex d06f85ab5f (menu_common_backend.c) 80-char limit 2014-09-01 16:52:54 +02:00
twinaphex 730c99ab76 (menu_common_backend.c) Go through menu_entries_pop instead of directly through file_list_pop 2014-09-01 06:11:06 +02:00
twinaphex 0fd529b78b (menu) get rid of setting enum 2014-09-01 06:04:01 +02:00
twinaphex 9ab14a89c3 (Menu) Refactor menu_entries_push 2014-09-01 06:01:01 +02:00
twinaphex 2baac0bb71 (Menu) Refactor function into menu_entries_push call 2014-09-01 05:56:58 +02:00
twinaphex e4745c0f24 (Menu) Create menu_entries_push 2014-09-01 05:50:20 +02:00
twinaphex e32e269264 (Menu) Move poll prototype functions to menu_input_line_cb.h 2014-09-01 05:38:05 +02:00
twinaphex 7586f8270b Move menu_flush_stack_type to menu_entries.c 2014-09-01 05:25:31 +02:00
twinaphex 5e88f487e9 (Menu) Create menu_entries_pop 2014-09-01 05:03:19 +02:00
twinaphex 3ef89c64db (Menu) Get rid of more enums 2014-09-01 04:49:56 +02:00
twinaphex 1a06594858 (Lakka) Update/buildfix 2014-09-01 04:45:54 +02:00
twinaphex e83334433d (menu_entries.c) Refactor perf counter list push 2014-09-01 04:33:09 +02:00
twinaphex 4d94aca1db (Menu) Get rid of two enums 2014-09-01 03:51:04 +02:00
twinaphex 1a256399f1 (Menu) Fix savestate/loadstate settings in quickmenu 2014-09-01 03:38:34 +02:00
twinaphex 85fca42b42 (Menu/disp) Use rarch_main_command 2014-09-01 03:08:27 +02:00
twinaphex fcacc46ef5 (Menu) Take out defer_decision function pointers 2014-09-01 02:47:03 +02:00
twinaphex dbcb6c51ec (Menu) Create menu_parse_check 2014-09-01 02:38:54 +02:00
twinaphex de0ba69948 (Menu) Move menu_push_info_screen to menu_entries.c 2014-09-01 02:17:59 +02:00
twinaphex c0b100002c (Menu) Cleanups / split up duplicate entries_refresh code into
separate static function
2014-09-01 02:11:51 +02:00
twinaphex 140db3d689 (Menu/disp) Get rid of unnecessary strlcpys in disp/menu code 2014-09-01 02:00:51 +02:00
twinaphex b451958903 (rgui.c) Cleanup - 80-char limit 2014-09-01 01:59:30 +02:00
twinaphex 4f60a4a378 (Menu) Fix scrolling of title / label in GUI 2014-09-01 01:45:47 +02:00
twinaphex bd79842b63 (retroarch.c) refactoring for 80-char limit 2014-09-01 01:42:27 +02:00
twinaphex 772fcb508c (retroarch.c) refactoring for 80-char limit 2014-09-01 01:37:44 +02:00
twinaphex 1570d932e1 (retroarch.c) Refactor for 80-char limit 2014-09-01 01:19:16 +02:00
twinaphex 3756afb3d8 (Menu) Refactor CUSTOM_VIEWPORT_2 enum 2014-09-01 00:37:21 +02:00
twinaphex 5aff93ab25 (Menu) Move menu_parse_and_resolve to menu_entries.c 2014-09-01 00:27:09 +02:00
twinaphex 902a90bb29 Split up menu shader backend code to separate file 2014-08-31 23:53:18 +02:00
twinaphex bd9ec31a17 (Shaders/Menu) Comment out more shader code if HAVE_SHADER_MANAGER is not defined 2014-08-31 23:23:11 +02:00
twinaphex 7ea34ed4f0 (Griffin) Build fixes 2014-08-31 23:09:22 +02:00
twinaphex ffee4a2534 (Menu) Add Ifdefs for shader manager menu backend code parts 2014-08-31 23:07:23 +02:00
twinaphex 5d9f96bc07 Refactor menu_parse_and_resolve - add call to menu_entries_push
and add int returnvalue for menu_entries_push
2014-08-31 22:49:07 +02:00
twinaphex f348d4866f (Menu) Refactor menu_parse_and_resolve pt. 2 2014-08-31 22:41:25 +02:00
twinaphex 0eb93d4c44 (Menu) Refactor menu_parse_and_resolve 2014-08-31 22:23:32 +02:00
twinaphex 67ab867533 (Menu) Move code from menu_parse_and_resolve to menu_entries_push 2014-08-31 22:17:06 +02:00
twinaphex 81c5e4f459 (Menu) menu_parse_and_resolve cleanups 2014-08-31 22:11:31 +02:00
twinaphex bac9f5ef8d (Menu) Refactor menu_parse_and_resolve 2014-08-31 22:08:10 +02:00
twinaphex aa386698b3 (Menu) Cut down on unused variables 2014-08-31 21:56:36 +02:00
twinaphex e2aa4cda43 (Menu) Refactor menu_parse_and_resolve 2014-08-31 21:30:45 +02:00
twinaphex 20987f7d76 (Menu) Simplify call to menu_entries_push 2014-08-31 19:52:47 +02:00
twinaphex 3e7fb6d1e1 (Menu) Remove dependency on General Settings enum 2014-08-31 19:47:45 +02:00
twinaphex e649ae80ed (Menu) Refactor menu_entries_push 2014-08-31 19:41:28 +02:00
twinaphex c5a98467be (Menu) Refactor menu_entries_push 2014-08-31 19:29:42 +02:00
twinaphex 8e5f103697 Use menu_entries header in menu_entries.c 2014-08-31 19:09:25 +02:00
twinaphex a44665bcae Refactor prev/next driver settings 2014-08-31 19:06:32 +02:00
twinaphex d34e08fb76 (Griffin) Add menu_entries.c to griffin.c 2014-08-31 18:37:22 +02:00
twinaphex c114e51a2c (Menu) Split up menu entries code to menu_entries.c 2014-08-31 18:36:26 +02:00
Twinaphex 434562a6ad Merge pull request #915 from mprobinson/master
Avoid flicker during BFI and slow-motion or pause
2014-08-31 17:13:23 +02:00
Twinaphex bd3adc5aaa Merge pull request #916 from mprobinson/jack-fix
Fix buffer overflow in JACK audio driver
2014-08-31 17:13:09 +02:00
Mike Robinson addbcc6487 Fix buffer overflow in JACK audio driver
retroarch.c:flush_rewind_audio() can potentially send up to
audio_data.rewind_buf of 2048 frames (4096 samples) to audio_flush().

rarch_resampler_process() can potentially multiply the number of
frames by AUDIO_MAX_RATIO, to 32768 frames.

audio/jack.c:write_buffer() allocates a buffer of only 2048 frames on
the stack, which can overflow. This reliably happens when rewinding in
slow motion.

Multiply the JACK driver buffer by AUDIO_MAX_RATIO to prevent overflow.

However, DSP can also adjust the number of frames without limit. There
is no DSP_MAX_RATIO, so check the number of frames in
audio/jack.c:write_buffer() and truncate if they will not fit the
buffer. This will cause garbled audio, but in practice it is unlikely
to occur (DSP plugins do not usually add frames, flush_rewind_audio()
does not usually send the maximum possible number of frames).
2014-08-31 15:50:34 +01:00