nanogui: Problem with GrGetGCTextSize
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);
//