Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Bug in Picture Class
Bug in Picture Class [message #12407] Sat, 27 October 2007 21:56 Go to next message
zsolt is currently offline  zsolt
Messages: 693
Registered: December 2005
Location: Budapest, Hungary
Contributor
The problem is that showing big drawings, the scaling is buggy.
I attached a testcase: load a big image file and try resizing it.

Fix: CtrlLib/Static.cpp in void Picture::Paint(Draw& w) change a line:
//if(sr.cx * sz.cx < sz.cy * sr.cy) {
if(sr.cy * sz.cx < sz.cy * sr.cx) {
Re: Bug in Picture Class [message #12412 is a reply to message #12407] Sun, 28 October 2007 08:53 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
zsolt wrote on Sat, 27 October 2007 15:56

The problem is that showing big drawings, the scaling is buggy.
I attached a testcase: load a big image file and try resizing it.

Fix: CtrlLib/Static.cpp in void Picture::Paint(Draw& w) change a line:
//if(sr.cx * sz.cx < sz.cy * sr.cy) {
if(sr.cy * sz.cx < sz.cy * sr.cx) {



Thank you, patch applied.

Mirek
Previous Topic: Any function to draw gradient color?
Next Topic: Display bug in ArrayCtrl
Goto Forum:
  


Current Time: Thu Mar 28 11:05:18 CET 2024

Total time taken to generate the page: 0.01088 seconds