summaryrefslogtreecommitdiffstats
path: root/src/display/sp-canvas.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove #include "config.h" wherever possibleEduard Braun2018-10-011-1/+1
|
* Merge branch 'misc-typos' of gitlab.com:luzpaz/inkscapeMarc Jeanmougin2018-09-131-1/+1
|\
| * Several more typosluz.paz2018-09-111-1/+1
| |
* | Support smooth scrolling (part 1)Eduard Braun2018-09-111-0/+1
|/ | | | Allows panning / zooming / rotating the canvas smoothly.
* Run clang-tidy’s modernize-use-bool-literals pass.Emmanuel Gil Peyrot2018-06-181-1/+1
| | | | | This makes it clearer whether an integer or a boolean has to be passed in this specific call.
* Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot2018-06-181-69/+69
| | | | | This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
* Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin2018-05-041-12/+12
| | | | This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
* Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin2018-04-291-12/+12
|
* Speed up removing items from SPCanvasGroupEduard Braun2018-03-121-2/+5
| | | | | | | | | | | | This shortcut is possible as there are no duplicate items in SPCanvasGroup. It reverts to the behavior before ab7cc89c4f9f938575e777530c31312cde116208 which introduced a severe performance regression when deselecting paths with many nodes while the node tool is active. Fixed bugs: - https://bugs.launchpad.net/inkscape/+bug/1652100 - https://bugs.launchpad.net/inkscape/+bug/1745763
* Store device-scale and propogate value where necessary.Tavmjong Bah2017-11-301-21/+26
| | | | | Avoids reliance on cairo_surface_get_device_scale. Also necessary for filters.
* Remove debugging code and other cleanup.Tavmjong Bah2017-11-241-105/+21
|
* Fix repainting.Tavmjong Bah2017-11-241-3/+21
|
* First attempt at supporting HiDPI on canvas.Tavmjong Bah2017-11-231-17/+152
| | | | | Rendering seems to work but has not been fully tested. Editting does not work.
* Remove need to restart Inkscape when changing tile multiplier.Tavmjong Bah2017-11-041-5/+2
| | | | Increase default and maximum values of tile multiplier.
* Fix crash in "New from template" dialogChristophe Lebras2017-07-041-19/+26
| | | | | | Selecting template in "New from template" dialog, causes Inkscape to crash because the method SPCanvas::paintSingleBuffer is called before _backing_store is initialized. Checking _backing_store value and returning if null, prebent crash.
* SPCanvas::paintSingleBuffer: Draw directly to _backing_storeUli Schlachter2017-07-011-12/+18
| | | | | | | | | | | | | | Before this commit, this function creates a new cairo image surface, draws the tile that it was told to redraw to this buffer and then uses cairo to copy the drawn data at the right position inside of _backing_store. Thus, the drawn data was copied around at least once. This commit changes the code so that it draws directly to _backing_store: We get the information from _backing_store and then create a new image surface from this that covers just the part that we should redraw. Thus, one copy of the data is avoided. Signed-off-by: Uli Schlachter <psychon@znc.in>
* SPCanvas: Use a similar image for _backing_storeUli Schlachter2017-07-011-4/+47
| | | | | | | | | | | | | | | | Cairo 1.12 adds the function cairo_surface_create_similar_image(). It works just like cairo_image_surface_create() in that it creates an image surface. However, when the passed-in surface is a cairo-xlib surface, the data of the image surface will be allocated in a shared memory segment. This makes it cheaper to have the X11 server access the surface since it does not need to be uploaded. To make use of this, a new _surface_for_similar member is added. This member is set to a (useless) surface in handle_draw(). On Linux this creates a cairo-xlib surface, so that _backing_store is latter allocated in a shared memory segment. Signed-off-by: Uli Schlachter <psychon@znc.in>
* Fix a small memory leak in SPCanvas::paintUli Schlachter2017-07-011-0/+3
| | | | Signed-off-by: Uli Schlachter <psychon@znc.in>
* Add preference that allows user to increase the canvas tile size.Tavmjong Bah2017-03-301-1/+7
| | | | | | A larger tile size vastly speeds up rendering for drawings with heavy filter use by reducing the need to recalculate filter effects that cross multiple tiles. (bzr r15614)
* Add canvas-rotate for rapid previewing canvas rotation.Tavmjong Bah2017-03-301-4/+5
| | | | | Add canvas-debug for study of canvas tiling. (bzr r15612)
* Implement rotation via desktop to window affine.Tavmjong Bah2017-03-201-290/+1
| | | | | | Remove rotation via viewbox. Still some work to do... (bzr r15603)
* Replace rectangle based zooming by affine based zooming.Tavmjong Bah2017-03-131-1/+7
| | | | | | | | This allows a rotation to be included in the drawing to window mapping. General code cleanup. Added documentation. Any change to zooming behavior is probably a bug. (bzr r15592)
* sp-canvas: Migrate to seat_grabAlex Valavanis2017-02-261-5/+12
| | | (bzr r15548)
* Fix Gdk deprecationsAlex Valavanis2017-02-071-2/+25
| | | (bzr r15492)
* Fix some new Gdk deprecationsAlex Valavanis2017-02-071-1/+1
| | | (bzr r15491)
* fixing to new trunkJabiertxof2017-01-241-14/+17
|\ | | | | (bzr r15142.1.38)
| * sp-canvas: Gtkmmify to squash a few warningsAlex Valavanis2016-12-251-14/+17
| | | | | | (bzr r15353)
* | Fix angle constrain, thanks to vlada, Mc and LiamWJabier Arraiza Cenoz2016-11-011-1/+1
| | | | | | (bzr r15142.1.29)
* | Add some Vlava improvements from mailing listJabier Arraiza Cenoz2016-11-011-5/+13
|\| | | | | (bzr r15142.1.28)
* | Add fadding from temporary rotate draw to real onesJabier Arraiza Cenoz2016-10-261-11/+20
| | | | | | (bzr r15142.1.27)
* | Some bug fixes and improvementsJabier Arraiza Cenoz2016-10-251-12/+0
| | | | | | (bzr r15142.1.25)
* | Add right click rotation panning, some fixesJabier Arraiza Cenoz2016-10-231-53/+60
| | | | | | (bzr r15142.1.23)
* | Add right click rotation panningJabier Arraiza Cenoz2016-10-231-8/+11
| | | | | | (bzr r15142.1.22)
* | Add doc rotate with panningJabier Arraiza Cenoz2016-10-231-10/+18
|\| | | | | (bzr r15142.1.21)
* | Add right click attemptJabier Arraiza Cenoz2016-10-231-5/+63
| | | | | | (bzr r15142.1.20)
* | Styling rotateJabier Arraiza Cenoz2016-10-191-4/+49
| | | | | | (bzr r15142.1.17)
* | Working with rotate previewJabier Arraiza Cenoz2016-10-191-3/+166
|/ | | (bzr r15142.1.15)
* Finish removing GTK+ 2 fallbacksAlex Valavanis2016-07-281-90/+10
| | | (bzr r15023.2.8)
* Clarify license.Krzysztof Kosi??ski2016-05-081-1/+4
| | | | | | | | | Most Inkscape source code does not specify GPL version, so it is essentially GPL v1+ under section 9. Authors of the few GPL v2 only files were contacted and all agreed to relicense under GPL v2 or later. We also have a few files copies from GIMP, which are GPL v3+, so the complete program is available under GPL v3 or later. (bzr r14873)
* Priority is so high it blocks blitting the canvasLiam P. White2016-04-151-1/+1
| | | (bzr r14849)
* Change idle priority back to highLiam P. White2016-04-141-1/+1
| | | (bzr r14848)
* Remove unused variable in sp-canvas.cppKrzysztof Kosi??ski2016-04-131-2/+0
| | | (bzr r14833)
* Fix artifacts at the border when panning the canvas. #Hackfest2016Krzysztof Kosi??ski2016-04-131-16/+13
| | | (bzr r14831)
* Fix canvas flicker while dragging objects. #Hackfest2016Krzysztof Kosi??ski2016-04-131-33/+11
| | | (bzr r14829)
* Fix redraw problems when shrinking and then enlarging the SPCanvas widget.Krzysztof Kosi??ski2016-04-131-4/+6
| | | | | #Hackfest2016 (bzr r14824)
* Move background drawing to SPCanvas to avoid temporarily drawing an incorrectKrzysztof Kosi??ski2016-04-131-22/+63
| | | | | background. #Hackfest2016 (bzr r14821)
* Simplify SPCanvas by tracking the clean region instead of the dirty region.Krzysztof Kosi??ski2016-04-131-73/+40
| | | | | #Hackfest2016 (bzr r14816)
* sp-canvas: Disable deprecated double-buffering #Hackfest2016Alex Valavanis2016-04-121-6/+1
| | | (bzr r14799)
* Update copyright notices on display/sp-canvas.(h|cpp)Krzysztof Kosi??ski2016-04-121-0/+2
| | | (bzr r14798)
* Hackfest 2016: Fix SPCanvas to comply with GTK3 rendering model.Krzysztof Kosi??ski2016-04-121-143/+136
| | | | | For now, causes redraw issues with SVG preview in the open dialog. (bzr r14795)