nanogui: Problem with GrGetGCTextSize


Previous by date: 29 Nov 2005 08:42:47 +0000 regarind viewml, sai baba
Next by date: 29 Nov 2005 08:42:47 +0000 When is actual screen drawing done?, tj
Previous in thread:
Next in thread: 29 Nov 2005 08:42:47 +0000 Re: Problem with GrGetGCTextSize, Greg Haerr

Subject: Problem with GrGetGCTextSize
From: Sébastien ####@####.####
Date: 29 Nov 2005 08:42:47 +0000
Message-Id: <20051129084231.D60A53808B@romulan3.deckpoint.ch>

Hi,

 

I have a problem with the GrGetGCTextSize function.

Sometimes, not always, the nano-X client crash.

Then i have these errors :

 

nxclient 952: Wrong packet type 6 (expected 22)

nxclient 952: Wrong packet type 1080 (expected 22)

nxclient 952: Wrong packet type 0 (expected 22)

 

what does it means ?

 

Here's my code ...

 

//

  GR_SIZE szWidth;

  GR_SIZE szHeight;

  GR_SIZE szBase;

 

  char tmp[32];

  sprintf(tmp, "This is a test");

  tmp[14] = '\0';

 

  GR_GC_ID gc2;

  gc2 = GrNewGC();

  GR_FONT_ID f = GrCreateFont ("arial", 14, NULL);

  GrSetGCFont(gc2, f);

 

  GrGetGCTextSize(gc2, tmp, -1, GR_TFASCII, &szWidth, &szHeight, &szBase);

//


Previous by date: 29 Nov 2005 08:42:47 +0000 regarind viewml, sai baba
Next by date: 29 Nov 2005 08:42:47 +0000 When is actual screen drawing done?, tj
Previous in thread:
Next in thread: 29 Nov 2005 08:42:47 +0000 Re: Problem with GrGetGCTextSize, Greg Haerr


Powered by ezmlm-browse 0.20.