bugGnash - The GNU Flash player - Bugs: bug #22893, Buttons and clickable area...

 
 

bug #22893: Buttons and clickable area misalignment?

Submitted by:  Nico Coesel <ncoesel>
Submitted on:  Thu 10 Apr 2008 03:19:29 PM UTC  
 
Category: gui-fbSeverity: 3 - Normal
Release: NoneStatus: None
Privacy: PublicAssigned to: Udo Giacomozzi <udog>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 11 Apr 2008 08:09:41 AM UTC, comment #3:

It is the scaling (getXScale / getYScale) indeed. I've got tslib working with Gnash now. I'll post the patches shortly.

Nico Coesel <ncoesel>
Thu 10 Apr 2008 09:04:22 PM UTC, comment #2:

Looking at the other GUI code, I think I know where I got it wrong. The coordinates are always scaled using getXScale and getYScale. I didn't implement that. The scale seems to depend on the size of the movie. I'll add the scaling to my code first thing in the morning and report the results. I'll be back...

Nico Coesel <ncoesel>
Thu 10 Apr 2008 06:52:34 PM UTC, comment #1:

Udo, this seems for you

Sandro Santilli <strk>
Project Member
Thu 10 Apr 2008 03:19:29 PM UTC, original submission:

I'm working on getting tslib (generic touchscreen driver/filter) to work with fb-gnash on an embedded device. I noticed I have to click outside buttons to activate them.

I tried the following flash file:

# gnash -v -vb t.log http://www.permadi.com/tutorial/flashperl/helloperl.swf

It shows a button and a text. When the button is clicked, the text changes. On the embedded device, the button is in the center of the screen.

When I click the center of the button there is no response. The touchscreen calls notify_mouse_move with the following coordinates (width and height are m_stage_width and m_stage_height):

196] 07:24:03: DEBUG: Touched x: 155 y: 120 width: 320 height: 234
1196] 07:24:03: DEBUG: lifted x: 155 y: 120

However, when I click above the button, the button is activated.

1169] 07:14:43: DEBUG: Touched x: 159 y: 83 width: 320 height: 234
1169] 07:14:43: DEBUG: lifted x: 159 y: 83
1182] 07:14:43: DEBUG: HTTP response 200 from url http://www.permadi.com/cgi-bin
/fpcgi/flashperl/hello.pl

Another example from the same page has the same problem. I have to click above the button to activate it.
http://www.permadi.com/tutorial/flashperl/timeperl2.swf

Yet another flash file:
http://www.macloo.com/examples/flash/buttons/buttons.swf
In this flash file I have to click slightly below the buttons to activate them. I cannot click the return button to restart the animation.

I tried fltk-gnash under windows. The first and third file work okay. I also tried gtk-gnash (using tinyx and tslib) on my embedded system. In this case the buttons also work okay.

Any ideas?

Nico Coesel <ncoesel>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by ncoesel (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 10 Apr 2008 06:52:34 PM UTCstrkAssigned toNone=>udog

    Back to the top


    Powered by Savane 3.1-cleanup