Re: _getCairoSurfaceFromContext() issue/doubt

From: Fabiano Fidêncio <fabiano_at_fidencio.org>
Date: Thu Oct 13 2011 - 12:52:31 CEST

On Thu, Oct 13, 2011 at 5:28 AM, Jean Bréfort <jean.brefort@free.fr> wrote:
> Le mercredi 12 octobre 2011 à 23:32 -0300, Fabiano Fidêncio a écrit :
>> Guys!
>>
>> Firstly, so sorry! I'm a bit absent from community last weeks.
>>
>> Today, a holiday here, I've been trying to understand bizar bug with
>> Caret on OS X.
>> So, I cloned Andrei's branch and put 2 debug messages on
>> gr_CairoGraphics.cpp. One in line 1393 (before
>> cairo_surface_create_similar()'s call) and another in line 1399
>> (immediately after cairo_surface_create_similar();s call).
>>
>> The result was:
>
> What are these values? Without the debug statement, it's hard to say if
> things are correct or not.

These values are the rect used to create a similiar surface.

>
>> DEBUG: FIDENCIO before cairo_surface_create_similiar:
>> width: 1606411120
>> height: 0
>> x:5.000000
>> y:15.000000
>> DEBUG: FIDENCIO: after cairo_surface_create_similar:
>> width: 0
>> height: -1
>> x:5.000000
>> y:15.000000
>>
>> Looking for it using GDB I saw that pointer's address is not being changed. :-\
>
> Which pointer?

There's no pointer. :-)

>
>> Could someone gimme some tip/trick about what is happening or just
>> tell me "it's the expected behavior"?
>>
>> Best Regards,
>
> Regards,
> Jean
>
>
>

-- 
Fabiano Fidêncio
Received on Thu Oct 13 12:52:38 2011

This archive was generated by hypermail 2.1.8 : Thu Oct 13 2011 - 12:52:38 CEST