Re: [dev] Urgent:How to check if gdk API is failiing??

2008-06-19 Thread Thorsten Behrens
On Thu, Jun 19, 2008 at 01:49:14AM -0700, [EMAIL PROTECTED] wrote:
 I have checked the Clip regions and there is no problem there.The clip
 region for the dest drawable seems set correctly.
 
 Next,as you said I tried with slides containing two small bitmaps and the
 animated text and have noticed only a small but important observation. I
 noticed that in this case on fullscreen the first slide comes up(ie.Only the
 bitmap as expected) and on a click(ie any user event) the slide is shown
 completely along with the text.The last time when I had the whole screen
 covered in a bitmap and animated text, the first slide did not show up the
 slide on Fullscreen and required a click to show the bitmap and the text.
 
Weird. Some limit in bitmap sizes? I strongly suggest you to publish
your code, so that others can review/debug it, this here starts to become 
wild guessing...

Cheers,

-- Thorsten

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Urgent:How to check if gdk API is failiing??

2008-06-19 Thread [EMAIL PROTECTED]



Thorsten Behrens-3 wrote:
 
 On Thu, Jun 19, 2008 at 01:49:14AM -0700, [EMAIL PROTECTED] wrote:
 I have checked the Clip regions and there is no problem there.The clip
 region for the dest drawable seems set correctly.
 
 Next,as you said I tried with slides containing two small bitmaps and
 the
 animated text and have noticed only a small but important observation. I
 noticed that in this case on fullscreen the first slide comes up(ie.Only
 the
 bitmap as expected) and on a click(ie any user event) the slide is shown
 completely along with the text.The last time when I had the whole screen
 covered in a bitmap and animated text, the first slide did not show up
 the
 slide on Fullscreen and required a click to show the bitmap and the text.
 
 Weird. Some limit in bitmap sizes? I strongly suggest you to publish
 your code, so that others can review/debug it, this here starts to become 
 wild guessing...
 
 Cheers,
 
 -- Thorsten
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


Hi Thorsten,

Well, I later discovered that the slide contained some animation(ie.fly in
black kind of custom animation) and on removing it the slide is shown. So
the sizes dint matter really. I think there is something going wrong in our
rendering of the cached bitmaps as till that step the data seems to be
showing in the buffer. The Slideshow working on F5 and post PgDwn is also
not very clear so debugging is becoming a problem.
If u can give us any hints it would be great! :)

Regards,

Karl 

Regards,
Karl
-- 
View this message in context: 
http://www.nabble.com/Urgent%3AHow-to-check-if-gdk-API-is-failiing---tp17880763p18023432.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Urgent:How to check if gdk API is failiing??

2008-06-18 Thread [EMAIL PROTECTED]

Hi Thorsten .
I have seen that when i start the slideshow from any slide it works for that
slide .
Navigating to the other slide during slideshow is failing . 

What is the flow in following cases :
a) When u press F5 on the current sllide Versus 
b) When u press Page Down on the current slide which is fullscreen 
Do the flows at a) and b) differ .  

Please point me to relevant code in the slideshow.  Does the spriteHelprer
update screen  creates data of the consecutive slides for both cases (a) and
(b) . If the flows differ , it would mean that my VCL code fails for the
other case. 

Note that when i navigate the presentation in non-slideshow mode , it works
. Do you see any obvious problem , which i am missing .   Any pointers from
you will help me debug the issue with my bitmap / virtual device code. 

Regards,
Karl.



Thorsten Behrens-3 wrote:
 
 On Tue, Jun 17, 2008 at 01:51:35AM -0700, [EMAIL PROTECTED] wrote:
 Am porting OO to directfb and am facing a problem with the slideshow
 engine
 wherein on PgDown the navigation of slides doesnt seem to be
 happening.After
 a lot of debugging ive realised an inconsistent output from the
 gdk_draw_drawable() api I am using in the GtkCopyBits function. For the
 first time when i hit fullscreen there is no problem and the slide is
 displayed.However on PgDown or a click the next slide is not painted. 
 
 The code snippet is below.
 gdk_draw_drawable(GetDrawable(),pCopyGC,pSrcGraphics-GetDrawable(),
 pPosAry-mnSrcX, pPosAry-mnSrcY,
 pPosAry-mnDestX,pPosAry-mnDestY,pPosAry-mnSrcWidth,
 pPosAry-mnSrcHeight);
 
 This API documentation says that gives errors like 'badmatch' when there
 is
 a mismatch in the source and dest drawables visuals and colormaps.

 I'd guess getting gtk with debug  stepping into it should reveal
 that - apart from that, you can verify whether it's really the
 copyBits that fails, by assigning a slide transition to the first
 slide - if that shows, the method works in principle.
 
 Cheers,
 
 -- Thorsten
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Urgent%3AHow-to-check-if-gdk-API-is-failiing---tp17880763p17974455.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Urgent:How to check if gdk API is failiing??

2008-06-18 Thread Thorsten Behrens
On Wed, Jun 18, 2008 at 01:56:17AM -0700, [EMAIL PROTECTED] wrote:
 I have seen that when i start the slideshow from any slide it works for that
 slide .
 Navigating to the other slide during slideshow is failing . 
 
Hi Karl,

could you please also try whether assigning a slide transition
effect to the first slide shows up correctly?

 What is the flow in following cases :
 a) When u press F5 on the current sllide Versus 
 b) When u press Page Down on the current slide which is fullscreen 
 Do the flows at a) and b) differ .  
 
Not fundamentally. The next slide gets prepared in the background in
a second bitmap, so maybe a caching/resource issue on your side?

 Note that when i navigate the presentation in non-slideshow mode , it works
 . Do you see any obvious problem , which i am missing .   Any pointers from
 you will help me debug the issue with my bitmap / virtual device code. 
 
The non-slideshow mode is using completely different code paths,
this does not give much information - to give more specific help,
I'd need the code - preferrably a full patch, such that I can debug
that in a live office.

Cheers,

-- Thorsten

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Urgent:How to check if gdk API is failiing??

2008-06-18 Thread [EMAIL PROTECTED]



Thorsten Behrens-3 wrote:
 
 On Wed, Jun 18, 2008 at 01:56:17AM -0700, [EMAIL PROTECTED] wrote:
 I have seen that when i start the slideshow from any slide it works for
 that
 slide .
 Navigating to the other slide during slideshow is failing . 
 
 Hi Karl,
 
 could you please also try whether assigning a slide transition
 effect to the first slide shows up correctly?
 
 What is the flow in following cases :
 a) When u press F5 on the current sllide Versus 
 b) When u press Page Down on the current slide which is fullscreen 
 Do the flows at a) and b) differ .  
 
 Not fundamentally. The next slide gets prepared in the background in
 a second bitmap, so maybe a caching/resource issue on your side?
 
 Note that when i navigate the presentation in non-slideshow mode , it
 works
 . Do you see any obvious problem , which i am missing .   Any pointers
 from
 you will help me debug the issue with my bitmap / virtual device code. 
 
 The non-slideshow mode is using completely different code paths,
 this does not give much information - to give more specific help,
 I'd need the code - preferrably a full patch, such that I can debug
 that in a live office.
 
 Cheers,
 
 -- Thorsten
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


Hi Thorsten,

As u suggested I put a slide transition in the first slide  ,but with no
succes and it dint show up. :(

Also I was just wondering if its really a caching/resource issue on my side,
as i came across a situation wherein the slideshow works but wid slight
change in the way the user delivers the events.
The situation is summarized as follows.
1)I have 3 slides each being bitmaps covering the entire screen and each
containing some animation(ie. Some text coming up on a click)
2  (a)On F5,the first slide doesnt show up(ie.No bitmap comes up as in the
original slide). However on a click as proposed the 1st slide is displayed
correctly(ie.The bitmap as well as the animated text).
(b)To move to the next slide ie. on any key press , the first Slide is
erased and a black screen comes up.But giving one more click ( this is for
the animated text) , the slide comes up with both the bitmap and animated
text.
(c)this happens in case of all the remaing slides.

From the Observations above i conclude that the caching is not an issue as
well as the possibility of the next slide being clobbered is ruled out.

Do you draw anything from it??

Any help will be greatly appreciated! :)

Regards,
Karl


-- 
View this message in context: 
http://www.nabble.com/Urgent%3AHow-to-check-if-gdk-API-is-failiing---tp17880763p17982873.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Urgent:How to check if gdk API is failiing??

2008-06-18 Thread Thorsten Behrens
On Wed, Jun 18, 2008 at 06:37:44AM -0700, [EMAIL PROTECTED] wrote:
  On Wed, Jun 18, 2008 at 01:56:17AM -0700, [EMAIL PROTECTED] wrote:
  I have seen that when i start the slideshow from any slide it works for
  that
  slide .
  Navigating to the other slide during slideshow is failing . 
  
  Hi Karl,
  
  could you please also try whether assigning a slide transition
  effect to the first slide shows up correctly?
  
  What is the flow in following cases :
  a) When u press F5 on the current sllide Versus 
  b) When u press Page Down on the current slide which is fullscreen 
  Do the flows at a) and b) differ .  
  
  Not fundamentally. The next slide gets prepared in the background in
  a second bitmap, so maybe a caching/resource issue on your side?
  
  Note that when i navigate the presentation in non-slideshow mode , it
  works
  . Do you see any obvious problem , which i am missing .   Any pointers
  from
  you will help me debug the issue with my bitmap / virtual device code. 
  
  The non-slideshow mode is using completely different code paths,
  this does not give much information - to give more specific help,
  I'd need the code - preferrably a full patch, such that I can debug
  that in a live office.
  
  Cheers,
  
  -- Thorsten
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 
 As u suggested I put a slide transition in the first slide  ,but with no
 succes and it dint show up. :(
 
 Also I was just wondering if its really a caching/resource issue on my side,
 as i came across a situation wherein the slideshow works but wid slight
 change in the way the user delivers the events.
 The situation is summarized as follows.
 1)I have 3 slides each being bitmaps covering the entire screen and each
 containing some animation(ie. Some text coming up on a click)
 2  (a)On F5,the first slide doesnt show up(ie.No bitmap comes up as in the
 original slide). However on a click as proposed the 1st slide is displayed
 correctly(ie.The bitmap as well as the animated text).
 (b)To move to the next slide ie. on any key press , the first Slide is
 erased and a black screen comes up.But giving one more click ( this is for
 the animated text) , the slide comes up with both the bitmap and animated
 text.
 (c)this happens in case of all the remaing slides.
 
Hi Karl,

yes, this indeed gives some more hints - maybe clipping has issues
(in that there are subtle differences in how to interpret empty or
no clip), or there's something wrong with timer events, yielding or
rescheduling. You might want to single-step in
sd/source/ui/slideshow/slideshowimpl.cxx:updateHdl, to verify that
there are no differences to the X11 version.

Next thing to try: what's the differene if you use normal shapes
instead of the slide-sized bitmaps in your example above (and keep
the animation)?

x-posted to [EMAIL PROTECTED], I'd suggest continuing there.

Cheers,

-- Thorsten

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Urgent:How to check if gdk API is failiing??

2008-06-17 Thread [EMAIL PROTECTED]

Hi,

Am porting OO to directfb and am facing a problem with the slideshow engine
wherein on PgDown the navigation of slides doesnt seem to be happening.After
a lot of debugging ive realised an inconsistent output from the
gdk_draw_drawable() api I am using in the GtkCopyBits function. For the
first time when i hit fullscreen there is no problem and the slide is
displayed.However on PgDown or a click the next slide is not painted. 

The code snippet is below.
gdk_draw_drawable(GetDrawable(),pCopyGC,pSrcGraphics-GetDrawable(),
pPosAry-mnSrcX, pPosAry-mnSrcY,
pPosAry-mnDestX,pPosAry-mnDestY,pPosAry-mnSrcWidth,
pPosAry-mnSrcHeight);

This API documentation says that gives errors like 'badmatch' when there is
a mismatch in the source and dest drawables visuals and colormaps. Is there
any way to debug this as in our case we dont have and X Server ,so no way to
see if the bad match error is actually being reported.
Any help will be greatly appreciated. :)

Regards,
Karl
-- 
View this message in context: 
http://www.nabble.com/Urgent%3AHow-to-check-if-gdk-API-is-failiing---tp17880763p17880763.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Urgent:How to check if gdk API is failiing??

2008-06-17 Thread [EMAIL PROTECTED]



[EMAIL PROTECTED] wrote:
 
 Hi,
 
 Am porting OO to directfb and am facing a problem with the slideshow
 engine wherein on PgDown the navigation of slides doesnt seem to be
 happening.After a lot of debugging ive realised an inconsistent output
 from the gdk_draw_drawable() api I am using in the GtkCopyBits function.
 For the first time when i hit fullscreen there is no problem and the slide
 is displayed.However on PgDown or a click the next slide is not painted. 
 
 The code snippet is below.
 gdk_draw_drawable(GetDrawable(),pCopyGC,pSrcGraphics-GetDrawable(),
 pPosAry-mnSrcX, pPosAry-mnSrcY,
 pPosAry-mnDestX,pPosAry-mnDestY,pPosAry-mnSrcWidth,
 pPosAry-mnSrcHeight);
 
 This API documentation says that gives errors like 'badmatch' when there
 is a mismatch in the source and dest drawables visuals and colormaps. Is
 there any way to debug this as in our case we dont have and X Server ,so
 no way to see if the bad match error is actually being reported.
 Any help will be greatly appreciated. :)
 
 Regards,
 Karl
 


Hey,

Your right!The API works for the first slide so it means theres no problem.
But i was just wondering if the second time some argument is getting
corrupted or something.Anyways will try and figure it out.

Thanks Thorsten!

Regards,

Karl
-- 
View this message in context: 
http://www.nabble.com/Urgent%3AHow-to-check-if-gdk-API-is-failiing---tp17880763p17959948.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]