ShowImage: add feature to force original size

Operating Systems / Haiku - Adrien Destugues [pulkomandy.tk] - 28 April 2014 15:04 UTC

- This is enabled by shift+click on the Original Size toolbar button.
- The button stays pressed as long as the feature is enabled. Clicking it again disables it.
- When this is enabled, all images will be shown at original size, instead of being scaled up or down to fit the window.
- This is not persistent, and only affects the current session/window.

554e207 ShowImage: add feature to force original size.
src/apps/showimage/ShowImageView.cpp | 3 ++-
src/apps/showimage/ShowImageView.h | 3 +++
src/apps/showimage/ShowImageWindow.cpp | 28 +++++++++++++++-------
src/apps/showimage/ToolBarView.cpp | 41 ++++++++++++++++++++++++++++----
src/apps/showimage/ToolBarView.h | 6 +++--
5 files changed, 65 insertions(+), 16 deletions(-)

Upstream: cgit.haiku-os.org


  • Share