bugGnash - The GNU Flash player - Bugs: bug #18186, GTK gui doesn't properly handle...

 
 

bug #18186: GTK gui doesn't properly handle expose events (0.7.2 / head)

Submitter:  Sandro Santilli <strk>
Submitted:  Fri 03 Nov 2006 06:05:11 AM UTC
   
 
Category:  gui Severity:  3 - Normal
Release:  None Status:  Fixed
Privacy:  Public Assigned to:  bjacques
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 02 May 2007 07:57:22 PM UTC, comment #6: 

gravity-embedded.swf and other files work now with agg-gtk.
Something must have changed...

Martin Guy <martinwguy>
Sat 04 Nov 2006 12:19:58 AM UTC, comment #5: 

Sure, it would also be nice to have a menu item for it (refresh/redraw)

Sandro Santilli <strk>
Group Member
Sat 04 Nov 2006 12:17:07 AM UTC, comment #4: 

Looks fine. May I suggest a dedicated GUI function for re-render triggering?

Udo Giacomozzi <udog>
Group Member
Fri 03 Nov 2006 11:07:51 PM UTC, comment #3: 

It works fine with opengl renderer (but that might actually be given for free with some automatic backingstore implemented in gtkglext)

Sandro Santilli <strk>
Group Member
Fri 03 Nov 2006 10:31:15 PM UTC, comment #2: 

No, but 'expose' event directly call set_invalidated_bounds and then invoke renderBuffer().

Here's the 'expose' event handler:

        // Set an invalidate region that contains the entire screen for sure
        // TODO: be more conservative in setting draw_bounds
        //       (look at the GdkEventExpose)
        rect draw_bounds(-1e10f, -1e10f, +1e10f, +1e10f);

        gui->set_invalidated_region(draw_bounds);

        gui->renderBuffer();

Do you see any obvious pitfall ?

Sandro Santilli <strk>
Group Member
Fri 03 Nov 2006 03:13:58 PM UTC, comment #1: 

Hmm, is want_redraw() implemented in the GTK gui?

Udo Giacomozzi <udog>
Group Member
Fri 03 Nov 2006 06:05:11 AM UTC, original submission:  

Covering the movie window and uncovering it doesn't redraw the exposed parts (unless they move).
Try with gravity-embed.swf, the ball gets redrawn, the buttons don't.

Note that I tested with gtk/agg - am not sure it will still fail
with other renderers.

Sandro Santilli <strk>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by strk (Updated the item)
  • -email is unavailable- added by martinwguy (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-05-02 strk StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2007-05-02 martinwguy StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code