[AD] Fix for strange fb_init bug |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Hi. As reported in todo.txt, fb_init seemed to hang when user selects exotic resolutions like 777x777 or such. The problem was that fbcon.c's get_line was flaky, and could read wrong values out of the file. This triggered some signal (I didn't bother checking which one) which started calling linux/lsystem.c recursively. The console seemed blocked because the program is raising the same signal again and again without being able to do anything else. So I rewrote that function and it works. I hope it's solid enough to process any file existant file, at least I can't see anything wrong with it. You can remove the todo.txt entry. Now it's fun to watch things run in 777x777. IIRC now vesafb users could run lowres programs without resolution switch as long as they have the same color depth as the requested resolution, but I am too lazy to boot and veryfy this :-) PD: Are there any files which could be rewritten with GNU extensions? Grzegorz Adam Hankiewicz gradha@xxxxxxxxxx http://gradha.infierno.org
Attachment:
weird_fb_init_bug.gz
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |