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

Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Bug in Picture Class
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
 
Read Message
Read Message
Previous Topic: Any function to draw gradient color?
Next Topic: Display bug in ArrayCtrl
Goto Forum:
  


Current Time: Thu Sep 17 01:56:09 GMT+2 2026

Total time taken to generate the page: 0.01574 seconds