U++ framework
Do not panic. Ask here before giving up.

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: 705
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: 14291
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: Sun Sep 13 11:11:28 GMT+2 2026

Total time taken to generate the page: 0.00554 seconds