summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-04-07Fixed typo in warning message.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-19Fix dependencies.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12212 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-17Account for translation also in non-Pango code section.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12211 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-17Create Fl_Xlib_Graphics_Driver::scale_and_render_pixmap() to draw depth-4 or ↵Manolo Gouy
scaled RGB images using Xrender. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-17Revert temporary fix (attempt) introduced in svn r11644.Albrecht Schlosser
The fix in src/Fl_Input.cxx in svn r11644 was an attempt to fix the Visual Studio (Windows) build because CMake would sometimes not find the correct header files, but this attempt opened a path where the variable 'legal_fp_chars' was not initialized. The (hopefully) correct fix will follow in my next commit... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12208 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-17Fix Linux build after removal of Fl_Translated_Xlib_Graphics_Driver.cxxAlbrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12207 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-17The new Fl_Xlib_Graphics_Driver::draw_scaled() member function must also ↵Manolo Gouy
account for possible translation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12206 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-17Remove class Fl_Translated_Xlib_Graphics_Driver and move its processing to ↵Manolo Gouy
Fl_Xlib_Graphics_Driver. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12205 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-17Fix the projective transformation matrix used for Xrender-based scaled image ↵Manolo Gouy
drawing. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-16Add scaled image drawing to the X11 platform using Xrender.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-14Give platform-independent default implementation to Fl_System_Driver::gettime()Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-13Set missing svn properties.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-13Fix include file case (patch from Haiku port, thanks).Albrecht Schlosser
Ref.: https://github.com/mmuman/fltk-test-only.git, commit 59c3cfbdf0412fb30f8312ed9ddd96f5affd2f0a by François Revol. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12195 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-12Remove superfluous semicolon.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12194 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-12Fix svn attributes of *.c, *.cxx, *.cmake and others.Albrecht Schlosser
- set svn:keywords Id - set svn:eol-style native git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12193 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-11Separated Fl_Input_Choice.H and Fl_Input_Choice.cxx (STR #2750).Albrecht Schlosser
As proposed in STR #2750 and #2752: only status quo, i.e.: - no new method Fl_Input_Choice::maximum_size(int) (STR #2750 and #2752) - no handling of FL_Down key to open menu (STR #2752) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-10Enable Up/Down keys in Fl_Spinner if input has focus (STR #2989).Albrecht Schlosser
Previously Up/Down keys worked only if one of the buttons was pressed before so that it had the focus. test/valuators.fl: The second Fl_Spinner widget (FL_FLOAT_INPUT) now has wrap mode disabled whereas the first one (FL_INT_INPUT) uses wrap mode (default, compatible with FLTK 1.3.x and older). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-10New method Fl_Spinner::wrap(int) to set wrap mode at bounds (STR #3365).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-09Separated Fl_Spinner.H and Fl_Spinner.cxx (STR #2776).Albrecht Schlosser
Also removed deprecated (misspelled) method names mininum() and maxinum(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-07Have all Fl_Clock objects in a single FLTK app tick approximately at the ↵Manolo Gouy
same time. Before this change, clocks can tick at any point within a second, so 2 clocks can appear to disagree on the time they give (by less than a second). To see that, run the clock test program, icons one of the clocks, and uniconize it just before the other clock will tick. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-07Add to Fl_System_Driver support for measuring time with split second resolution.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12187 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-07Fix tab alignment.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12186 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-06Fl_Tabs: improve tab label drawing (STR #3075, STR #3076).Albrecht Schlosser
New method Fl_Tabs::tab_align() supports icons in tabs (STR #3076). This commit also enables drawing labels of Fl_Window children (STR #3075). Setting tab_align(FL_IMAGE_NEXT_TO_TEXT) draws images (icons) in the tab labels if the child has an image(). Currently this draws the image() even if the child is deactived (so it should presumably draw the deimage()). Todo: Label measurement and Fl_Windows as children still need fixups. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-05Simplify Fl_Tabs label drawing code (remove code duplication).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12184 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-02-27Improve label alignment docs and border case implementations.Albrecht Schlosser
Make clear that some alignment bit combinations are "illegal" and yield undefined behavior that can be changed without notice. Fix label alignment in some border cases where illegal bit combinations like FL_ALIGN_LEFT and FL_ALIGN_RIGHT or FL_ALIGN_TOP and FL_ALIGN_BOTTOM are both set, respectively. Todo: There appears to be inconsistent handling WRT these "illegal" cases, for instance with inside labels as opposed to outside labels, such that the behavior seems to be unpredictable. See test/label.cxx. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12181 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-02-25Fix typo (case) in include file name.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12180 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-02-22Avoid potential crash occurring after calling win->show(0,0)Manolo Gouy
See [fltk.general] Drawing to Fl_Offscreen received signal SIGSEGV, Segmentation fault. that is unrelated to Fl_Offscreen but caused by calling win->show(0,0). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12179 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-02-20Mac OS: remove unused members variables from platform-specific struct ↵Manolo Gouy
Fl_Window_Driver::shape_data_type git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12178 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-02-20Pre-multiply alpha on cursors on X11, as required by XRender.Pierre Ossman
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12177 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-02-19Fix line wrap at word end when string widths are true double values (non ↵Manolo Gouy
integer). Useful for rescaling that creates non-integer string widths. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-02-04Fix line number alignment in Fl_Text_Display/Editor (STR #3363).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-02-03Incorporate the code of function handleUpdateEvent() in the unique code ↵Manolo Gouy
section which calls it. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12169 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-02-01Fl_Text_Display documentation updates.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-01-24MacOS: reduce the memory size of class gl_texture_fifo managing GL textures ↵Manolo Gouy
to draw strings under GL. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12166 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-01-20Allow resizable Fl_Gl_Window drawn using the Fl_OpenGL_Graphics_DriverManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12165 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-01-19Remove USE_OksiD_style_GL_font_selection preprocessor variable because it is ↵Manolo Gouy
equivalent to !USE_XFT git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-01-10Fl_OpenGL_Graphics_Driver : use gl_font()/gl_draw() to draw text in a GL ↵Manolo Gouy
window - continued. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-01-10Fl_OpenGL_Graphics_Driver : use gl_font()/gl_draw() to draw text in a GL window.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12162 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-01-10Match glPushAttrib() with glPopAttrib()Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12161 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-01-10Remove useless #include directivesManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12160 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-23Fix CMake config.h and compiler warnings.Albrecht Schlosser
Fixed warnings: -Wsign-compare, -Wunused-but-set-variable. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12155 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-21X11 platform: Add optional use of the pango library to draw text, gaining ↵Manolo Gouy
the possibility to draw text in any script supported by Unicode. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12153 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-21Fix Fl_Xlib_Graphics_Driver::delete_bitmask() : the pixmap argument is to be ↵Manolo Gouy
deleted by XFreePixmap(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12152 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-17Handle non-ASCII characters when selecting a word or moving the cursor by ↵Manolo Gouy
one word. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12149 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-16Improve Fl_Graphics_Driver::copy_offscreen() so it accepts an Fl_Offscreen ↵Manolo Gouy
argument even if not created by fl_create_offscreen(). With this, fl_copy_offscreen() can be used with any drawing surface (e.g., PostScript) and any Fl_Offscreen argument (e.g., returned by Fl_image_Surface::offscreen()). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12148 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-14Implement a platform-independent version of ↵Manolo Gouy
Fl_Graphics_Driver::copy_offscreen() usable when drawing to PostScript. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12147 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-12Fix compiler warning [-Wsign-compare].Albrecht Schlosser
warning: comparison between signed and unsigned integer expressions git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12145 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-12The virtual function Fl_Graphics_Driver::copy_offscreen() cannot be ↵Manolo Gouy
implemented in a platform-independent way. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12144 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-09Doxygen: more detailed descriptions of Fl_Image_Surface::offscreen() and ↵Manolo Gouy
Fl_Image_Surface::get_offscreen_before_delete(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12142 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-09Simpler code path for a member function calling another member function of ↵Manolo Gouy
same class. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12141 ea41ed52-d2ee-0310-a9c1-e6b18d33e121