[Bug 626406] New: sffview displays faxes inverted
http://bugzilla.novell.com/show_bug.cgi?id=626406 http://bugzilla.novell.com/show_bug.cgi?id=626406#c0 Summary: sffview displays faxes inverted Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: peter.schaefer@gmx.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8 I'm the upstream author of sffview and got the following bug report: -SNIP------8<-- "gerade habe ich unter openSUSE 11.1 sffview installiert. Danke für dieses Programm. Anders als unter openSuSE 10.2 werden die gleichen Faxe aber nun invertiert dargestellt. Was kann ich dagegen tun?" -SNAP-----8<-- In short: SuSE uses outdated upstream sources. Please pull http://sourceforge.net/projects/sfftools/files/SFFTools/sffview/sffview_0_4_... and re-diff. Cause is change of behaviour in wxGTK > 2600. The "OnDraw"-method in sffview.cpp must read (note the ifdefs): void SffView::OnDraw(wxDC *dc) { // Flipping is currently not supported due to wxGTK not honouring // the mapping mode while blitting. This seems to be badly horked // currently (wxGTK 2.5.2) dc->SetUserScale(m_nZoom, m_nZoom); #if defined(__WXGTK__) && (wxVERSION_NUMBER < 2600) if (m_nZoom != 1) { // Strange misbehaviour of wxGTK -> if we blit zoomed, the colours // get inversed ??!? Workaround: wxSRC_INVERT dc->Blit(0,0,m_nBitmapWidth,m_nBitmapHeight,m_pMemDC,0,0,wxSRC_INVERT); } else { dc->Blit(0,0,m_nBitmapWidth,m_nBitmapHeight,m_pMemDC,0,0,wxCOPY); } #else dc->Blit(0,0,m_nBitmapWidth,m_nBitmapHeight,m_pMemDC,0,0,wxCOPY); #endif } Regards Reproducible: Always Steps to Reproduce: 1. Open a sff file 2. Wonder about inverted colours 3. Flame author Actual Results: Upstream author is disgruntled 'cause distro did lousy job (source is from 2008!). Expected Results: Well, don't use SuSE. Take Debian. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=626406
http://bugzilla.novell.com/show_bug.cgi?id=626406#c
yang xiaoyu
https://bugzilla.novell.com/show_bug.cgi?id=626406
https://bugzilla.novell.com/show_bug.cgi?id=626406#c
Stephan Kulow
participants (1)
-
bugzilla_noreply@novell.com