summaryrefslogtreecommitdiffstats
path: root/src/display/sp-canvas.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* Hackfest 2016: un-obfuscate the SPCanvas widget.Krzysztof Kosi??ski2016-04-121-545/+353
| | | (bzr r14790)
* Fix node size regression and add ctrlResize property for multiple use.Martin Owens2016-04-021-0/+1
| | | | | | Fixed bugs: - https://launchpad.net/bugs/1562197 (bzr r14761)
* type in commit r14664Kris De Gussem2016-02-291-1/+1
| | | (bzr r14676)
* static code analysisKris De Gussem2016-02-221-2/+2
| | | (bzr r14664)
* Remove artifacts when remove canvas items, for example in measure toolJabier Arraiza Cenoz2016-02-101-1/+1
| | | (bzr r14645)
* Less derp, can't iterate past the end of the listLiam P. White2016-01-171-2/+2
| | | (bzr r14602)
* Follow-up commit to 14529.Liam P. White2016-01-171-33/+40
| | | | | | From std::list documentation: list::insert - The container is extended by inserting new elements before the element at the specified position. (bzr r14601)
* cppification and performanceMarc Jeanmougin2015-12-131-129/+66
| | | (bzr r14529)
* Make the behavior of the snap indicator fully transparent, such that all ↵Diederik van Lierop2015-06-121-22/+8
| | | | | | | | events are sent to the items or canvas as intended Fixed bugs: - https://launchpad.net/bugs/1420301 (bzr r14201)
* Update to experimental r13531Liam P. White2014-08-311-98/+14
|\ | | | | (bzr r13090.1.106)
| * sp-canvas: GObject boilerplate reductionAlex Valavanis2014-08-261-98/+14
| | | | | | (bzr r13341.1.180)
| * Turn on double-buffering of the canvasLiam P. White2014-08-231-1/+1
|/ | | (bzr r13341.1.166)
* workaround build failure on Ubuntu 14.04 with dbus ext and clangAlex Valavanis2014-04-161-0/+2
| | | (bzr r13290)
* Provide a toggle in the document properties to optionally turn offKrzysztof Kosi??ski2014-03-131-1/+0
| | | | | | | | | antialiasing for display and export. Fixes a nearly 10 year old bug #170356 Fixed bugs: - https://launchpad.net/bugs/170356 (bzr r13144)