Commit Graph

6902 Commits

Author SHA1 Message Date
Matthias Melcher
ac1932eaa7 (incomplete) Add files required to compile for Android via Pico driver.
Don't get your hopes up just yet: this code does compile, but it doesn't fully link yet. If you like to test this, install the Android SDK and NDK, set the usual environment variables, then change into the "Android" direktory and run "mk". It will currently fail at the linker stage.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 00:19:27 +00:00
Manolo Gouy
31fcd84ca9 Rewrite all window icon-related Fl_Window API with the window driver approach.
It seems this allows not to #include <windows.h> in the public header files.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 22:26:40 +00:00
Manolo Gouy
7098924b82 Add code to delete Fl_WinAPI_Window_Driver object.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11341 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 18:45:50 +00:00
Manolo Gouy
9bffd04b3a Remove useless Fl_Cocoa_Window_Driver::todelete_ member
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 18:39:01 +00:00
Manolo Gouy
1d7ce6ad41 Add deletion code for Fl_X11_Window_Driver object
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11339 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 18:33:05 +00:00
Manolo Gouy
11d3888fc2 Remove useless #niclude directive
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11338 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 17:27:23 +00:00
Manolo Gouy
5411b20fb8 Deleted because use f the window driver mechanism.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11337 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 17:22:26 +00:00
Manolo Gouy
d4768073fa Implement non-rectangular windows using the Window Driver mechanism.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 17:19:34 +00:00
Manolo Gouy
79f79d292c Remove redundant recursion (as suggested in [fltk.coredev] [porting] Remove redundant recursion)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 16:07:24 +00:00
Manolo Gouy
2d5dbc3925 Add necessary #include directive
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 13:22:29 +00:00
Manolo Gouy
7260f919a0 Rename header files with .H extension
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 10:18:57 +00:00
Manolo Gouy
9e86a2c1a5 Rename header files with .H extension
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 10:18:12 +00:00
Manolo Gouy
18747277a9 Add necessary test for non-null pointer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11331 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-09 17:19:50 +00:00
Manolo Gouy
18098db3ae Fix freeze of Fl_Native_File_Chooser occurring under Mac OS + X11 when printing to .ps file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-09 16:17:36 +00:00
Manolo Gouy
d4577f0d0a Simplify Fl_OpenGL_Display_Device::capture_gl_rectangle() under Mac OS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11328 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-09 11:40:13 +00:00
Manolo Gouy
fc3adbd7cb Rewrite Fl_Gl_Device_Plugin.cxx in a platform-independent way.
The platform-specific code lands in src/Drivers/OpenGL/Fl_OpenGL_Display_Device.cxx
and the FL_PORTING clause should be compilable.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-09 10:30:29 +00:00
Manolo Gouy
309213bfae Simpler code for capture of OpenGL windows: the pixel array is converted to top-to-bottom earlier.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-09 06:59:12 +00:00
Manolo Gouy
0b751e8175 Rewrite Fl_Gl_Device_Plugin::print() without any platform-specific code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 22:22:03 +00:00
Manolo Gouy
459b0d1d07 Restore high resolution support.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11324 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 22:19:57 +00:00
Manolo Gouy
6f590b9a13 Simpler method to retain printed image data in memory until it is effectively used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 22:18:59 +00:00
Matthias Melcher
548ac7a623 A few more Pico fixes. Tests with single buffered windows render well for those parts that are implemented.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 16:08:34 +00:00
Matthias Melcher
58eb525366 Compiling test/colbrowser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 15:49:45 +00:00
Albrecht Schlosser
bcb756da38 Improve documentation of Fl_Valuator class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11318 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 13:51:01 +00:00
Albrecht Schlosser
ad230031f5 Fix overflow in Fl_Valuator::precision(int) to 0...9 (STR #3280).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11317 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 13:48:30 +00:00
Matthias Melcher
ca54afe5f4 Add missing PicoSDL functions for command line build.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11313 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 09:15:50 +00:00
Matthias Melcher
00750d4c33 Add very basic graphics support to PicoSDL.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 00:35:00 +00:00
Matthias Melcher
b73bf4a73e Fixes for MSWindow
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-07 21:56:12 +00:00
Matthias Melcher
c26880e2d2 Fixes for X11
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11309 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-07 21:45:55 +00:00
Matthias Melcher
12eef8e64d Separating Fl_X and Fl_Window_Driver in Fl_Window.
This was needed because Fl_X only exists if a window is mapped, but we need the driver from the very beginning. Adding Fl_X in the ctor would create hidden bugs. Strategy is now to remove system specific stuff from Fl_X and move it one-by-one to Fl_Window_Driver while maintaining a working code base. X11 and WIN32 fixups will follow in 15 minutes.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11308 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-07 21:15:25 +00:00
Matthias Melcher
b6b99d84e9 Fix PicoSDL.
Fixed some issues with Image_Surface and Copy_Surface for PicoSDL. Still have to virtualize the driver concept.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-07 20:50:18 +00:00
Manolo Gouy
b33c9cffd1 Driver-based Fl_Double_Window implementation - continued.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-06 22:33:41 +00:00
Manolo Gouy
5ca73da7b3 Driver-based Fl_Double_Window implementation - continued.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-06 22:22:22 +00:00
Manolo Gouy
acfeee6d78 New, driver-based Fl_Double_Window implementation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11303 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-06 21:33:07 +00:00
Matthias Melcher
7e2dc9daf5 Trying to make Pico work after Surface driver addition.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-06 21:01:54 +00:00
Matthias Melcher
a22cc4158f Rename SDL driver files to PicoSDL.
Renaming the files will keep the namespace clean if we decide to do a full blown SDL port one day.
PicoSDL OTOH is merely there to explain how a Pico driver setup is started and improved.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-06 20:31:12 +00:00
Manolo Gouy
00060ce587 Remove duplicate Fl_Image_Surface::(un)translate()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11300 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-06 19:13:57 +00:00
Manolo Gouy
09cc0a9aab Build with SDL driver needs to know also the Fl_Image_Surface class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-06 18:53:10 +00:00
Albrecht Schlosser
5c1e50b128 Fix include statements.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-06 14:31:33 +00:00
Albrecht Schlosser
96a89d4300 Remove obsolete ide/Xcode4 directory.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11297 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-05 16:41:04 +00:00
Albrecht Schlosser
aefd708ef1 Remove obsolete files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11296 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-05 16:25:39 +00:00
Albrecht Schlosser
b4126742f2 Fix and simplify exe name handling in demo (Windows).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-05 14:40:49 +00:00
Albrecht Schlosser
420408e7d3 [CMake] Mark OPTION_USE_POLL as advanced.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-05 13:29:46 +00:00
Manolo Gouy
95d5f00009 Remove warning message about signed/unsigned comparison.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11290 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-05 10:05:14 +00:00
Manolo Gouy
e7a0f7c5d0 Complete the platform-neutral implementation of fl_XXX_offscreen() functions.
It is necessary to have a stack of the fl_begin_offscreen() calls, so that nested
such calls apply fl_end_offscreen() to the matching fl_begin_offscreen().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-05 07:04:20 +00:00
Albrecht Schlosser
3f401f4477 Add Ian's offscreen test program.
Same commit as branch-1.3, svn r11287.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-05 00:53:40 +00:00
Manolo Gouy
79c64c461d Fix a problem seen in fluid on the Mac OS platform - continued.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11286 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-04 22:41:42 +00:00
Manolo Gouy
a46e324405 Fix a problem seen in fluid on the Mac OS platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11285 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-04 22:30:18 +00:00
Manolo Gouy
7c5c803ca9 Fix bad #include directives
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11284 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-04 18:01:39 +00:00
Manolo Gouy
a9c986752e Complete driver-based implementation of Fl_Image_Surface.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-04 17:47:29 +00:00
Manolo Gouy
35214afddf Protect platform-specific parts from Doxygen.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-04 16:44:23 +00:00