fruitjam-doom/textscreen
Simon Howard 242fa1ee46 textscreen: Fix jump when clicking on scrollbars.
Clicking on a scrollbar should scroll the cursor to that location, but
the logic for it was buggy because of loss of precision when doing an
integer divide. When dividing by bar_max, seek up to the nearest value
so that the cursor always arrives where we clicked.

Thanks to Alexandre-Xavier for reporting this bug. This fixes #359.
2014-04-29 01:47:13 -04:00
..
examples textscreen: Use safe string functions. 2014-04-01 21:49:16 -04:00
.gitignore Add tags files to svn:ignore properties. 2010-01-27 19:16:26 +00:00
Doxyfile Add "make doc" target to run Doxygen, and add a Doxyfile. Add @file tags 2009-03-08 22:51:25 +00:00
Makefile.am Merge from trunk. 2013-04-01 14:59:34 +00:00
textscreen.h Add file selector widget to textscreen library. 2013-03-31 18:46:25 +00:00
txt_button.c Remove some calls to TXT_FGColor by using the new TXT_SaveColors system 2012-03-04 12:06:29 +00:00
txt_button.h Add "make doc" target to run Doxygen, and add a Doxyfile. Add @file tags 2009-03-08 22:51:25 +00:00
txt_checkbox.c Remove some calls to TXT_FGColor by using the new TXT_SaveColors system 2012-03-04 12:06:29 +00:00
txt_checkbox.h Add "make doc" target to run Doxygen, and add a Doxyfile. Add @file tags 2009-03-08 22:51:25 +00:00
txt_desktop.c textscreen: Use safe string functions. 2014-04-01 21:49:16 -04:00
txt_desktop.h Add textscreen functions to raise and lower windows. 2013-08-31 00:12:09 +00:00
txt_dropdown.c Merge from trunk. 2012-10-28 23:45:08 +00:00
txt_dropdown.h Add "make doc" target to run Doxygen, and add a Doxyfile. Add @file tags 2009-03-08 22:51:25 +00:00
txt_fileselect.c textscreen: Use safe string functions. 2014-04-01 21:49:16 -04:00
txt_fileselect.h Fix Doxygen comments. 2013-03-31 20:38:03 +00:00
txt_font.h Add high-resolution font for textscreen. 2012-11-18 21:56:18 +00:00
txt_gui.c Rework the way that window background colors are set, and change the 2012-03-01 20:26:56 +00:00
txt_gui.h Rework the way that window background colors are set, and change the 2012-03-01 20:26:56 +00:00
txt_inputbox.c textscreen: Use safe string functions. 2014-04-01 21:49:16 -04:00
txt_inputbox.h textscreen: Use safe string functions. 2014-04-01 21:49:16 -04:00
txt_io.c Remove some calls to TXT_FGColor by using the new TXT_SaveColors system 2012-03-04 12:06:29 +00:00
txt_io.h Rework the way that window background colors are set, and change the 2012-03-01 20:26:56 +00:00
txt_label.c Rework the way that window background colors are set, and change the 2012-03-01 20:26:56 +00:00
txt_label.h Rework the way that window background colors are set, and change the 2012-03-01 20:26:56 +00:00
txt_largefont.h Change gradient characters of 'large' textscreen font to be direct 2013-10-31 02:59:07 +00:00
txt_main.h textscreen: Use safe string functions. 2014-04-01 21:49:16 -04:00
txt_radiobutton.c Remove some calls to TXT_FGColor by using the new TXT_SaveColors system 2012-03-04 12:06:29 +00:00
txt_radiobutton.h Add "make doc" target to run Doxygen, and add a Doxyfile. Add @file tags 2009-03-08 22:51:25 +00:00
txt_scrollpane.c textscreen: Fix jump when clicking on scrollbars. 2014-04-29 01:47:13 -04:00
txt_scrollpane.h Add "make doc" target to run Doxygen, and add a Doxyfile. Add @file tags 2009-03-08 22:51:25 +00:00
txt_sdl.c textscreen: Init screen at native bit depth. 2014-04-12 16:31:31 -04:00
txt_sdl.h Rename txt_main.c to txt_sdl.c; add txt_sdl.h for SDL-specific API 2007-06-04 18:32:50 +00:00
txt_separator.c Rework the way that window background colors are set, and change the 2012-03-01 20:26:56 +00:00
txt_separator.h Switch separator to show "screen mode" or "window size" depending on 2011-03-22 21:33:17 +00:00
txt_smallfont.h Minor smallfont fixups. 2009-05-04 23:46:27 +00:00
txt_spinctrl.c textscreen: Use safe string functions. 2014-04-01 21:49:16 -04:00
txt_spinctrl.h textscreen: Use safe string functions. 2014-04-01 21:49:16 -04:00
txt_strut.c Rework textscreen focus handling so that input boxes will stop editing 2011-10-23 19:25:55 +00:00
txt_strut.h Add "make doc" target to run Doxygen, and add a Doxyfile. Add @file tags 2009-03-08 22:51:25 +00:00
txt_table.c Rework textscreen focus handling so that input boxes will stop editing 2011-10-23 19:25:55 +00:00
txt_table.h Allow PGUP/PGDN to scroll up and down in scroll panes (thanks 2009-08-27 23:27:47 +00:00
txt_utf8.c textscreen: Use safe string functions. 2014-04-01 21:49:16 -04:00
txt_utf8.h textscreen: Use safe string functions. 2014-04-01 21:49:16 -04:00
txt_widget.c Rework the way that window background colors are set, and change the 2012-03-01 20:26:56 +00:00
txt_widget.h Fix Doxygen comments. 2013-03-31 20:38:03 +00:00
txt_window.c textscreen: Use safe string functions. 2014-04-01 21:49:16 -04:00
txt_window.h Merge from trunk. 2013-09-08 19:10:40 +00:00
txt_window_action.c textscreen: Use safe string functions. 2014-04-01 21:49:16 -04:00
txt_window_action.h Use "const char" in libtextscreen where appropriate (thanks entryway). 2009-09-20 15:27:40 +00:00