aboutsummaryrefslogtreecommitdiff
path: root/src/viewport.h
AgeCommit message (Collapse)Author
2020-06-12Unify rotation commands, reset transformation properlyAnton Älgmyr
2020-06-12Add rotation and flipping commands.Anton Älgmyr
Rotation can be done by any amount (not limited to multiples of 90). Commands allow flipping horizontally and vertically. The flips are done relative to the current rotation.
2019-08-25Added crop scaling methodSebastian Parborg
Added a method that scales and crop the image so that the image will fill the whole window. Also made viewport update respect the current scaling mode.
2019-08-25Add initial_pan option to set the starting pan positionSebastian Parborg
2019-07-03Big glfw refactorHarry Jeffery
I did a lot of this in a very ad-hoc fashion with no proper commit history. As such, the kindest thing to do seemed to be to just squash it into this one commit.
2019-06-12Add support for hidpi renderingHarry Jeffery
This fixes #148 but only when used with a version of SDL that includes this patch: https://bugzilla.libsdl.org/show_bug.cgi?id=4521
2017-12-07Make viepwort interface opaqueHarry Jeffery
2017-11-26Rename imv_texture -> imv_imageHarry Jeffery
2017-11-25Don't duplicate license text in all source filesHarry Jeffery
If moving to dual-licensing, this text will be confusing. It's also a lot of noise.
2017-08-22Remove year from copyright noticesHarry Jeffery
It was falling out of date, and has no legal bearing to my knowledge.
2017-08-06Prevent scrolling images indefinitely off-screenDrew DeVault
With this change, if you scroll the image well beyond the viewport, scrolling any amount in the other direction will immediately bring it back on screen.
2017-04-14Refactor viewport to new styleHarry Jeffery
2016-04-26Add vim modelinesDmitrij D. Czarkoff
2015-12-28Remove names from file copyright headersHarry Jeffery
2015-12-10Clean up redraw logicHarry Jeffery
2015-11-30Document imv_viewport's methodsHarry Jeffery
2015-11-28Remove unused parameterHarry Jeffery
2015-11-27Retrive viewport image dimensions from texture, not loaderHarry Jeffery
2015-11-19Rename imv_image -> imv_loader to prepare for refactoringHarry Jeffery
2015-11-14Rework zoomingHarry Jeffery
2015-11-12Relicence imv to GPLv2+Harry Jeffery
2015-11-11Improved zoom behaviourJose Diez
2015-11-11viewport_reset -> viewport_scale_to_window, add viewport_scale_to_actualJose Diez
2015-11-11Viewport: autoscale and center by default unless interacted withJose Diez
2015-11-11Update makefile to use a build directoryHarry Jeffery