FLTK logo

STR #1675

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #1675

Application:FLTK Library
Status:4 - Pending
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:2 - Specific to an operating system
Subsystem:X11
Summary:AnsiWidget demo application does not work well on Linux/X11
Version:2.0-current
Created By:dejan
Assigned To:cwarrens
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
 
#1 dejan
02:43 May 14, 2007
Looks like ansiwidget demo application does not work well on all platforms (for some reason). I have tested it on Windows, and it works well. On GNU/Linux, however (Fedora Core 6), I have a problem demonstrated on http://entropy.tmok.com/~leka/fltk/fltk-0001.png .
I have tried the latest, fresh source from our subversion repository (r5821).
Best regards!
 
 
#2 cwarrens
05:30 Jul 01, 2007
I have tracked the problem down to a few lines of code in x11/Image.cxx

I commented out these lines in Image::draw()

  //if (fl_rgba_xrender_format && picture->rgb) {
      //fl_xrender_draw_image(picture->rgb, pixeltype_, from, to);
      //return;
  //}

and these lines in Image::buffer()

// #if USE_XFT
//   if (fl_rgba_xrender_format) {
//     ld = w_*4;
//     depth = 32;
//   } else
// #endif

and the ansiwidget demo now works perfectly. I think the hard coded depth of 32 was mismatched with my systems color depth (24).

I'm not sure what the best approach is to actually make a permanent code change. I guess the above changes could break some other part of the system - or perhaps they also solve other problems :)
 
 
#3 cwarrens
05:39 Mar 25, 2008
Fixed in Subversion repository.

Updated Image::make_current() in x11/Image.cxx.

The image depth passed to Picture() must be xvisual->depth to be a valid drawing target. This depth is incompatible with fl_xrender_draw_image() so a flag was created to avoid using this function in Image::draw()
 
     

Return to Bugs & Features | Post Text | Post File ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.