nanogui: Problem with GrGetGCTextSize


Previous by date: 29 Nov 2005 23:16:21 +0000 Re: When is actual screen drawing done?, Greg Haerr
Next by date: 29 Nov 2005 23:16:21 +0000 Re: regarind viewml, Greg Haerr
Previous in thread: 29 Nov 2005 23:16:21 +0000 Problem with GrGetGCTextSize , Sébastien Chabert
Next in thread:

Subject: Re: [nanogui] Problem with GrGetGCTextSize
From: "Greg Haerr" ####@####.####
Date: 29 Nov 2005 23:16:21 +0000
Message-Id: <072501c5f53a$33a29b10$0300a8c0@RDP>

: nxclient 952: Wrong packet type 0 (expected 22)

These errors mean the client and server have lost
synchronization.  This can easily happen in multithreaded
environments.

You'll need to send a better code fragment, there's
nothing wrong with the code below, except, it
won't compile since there's a declaration after the
sprintf code, which isn't allowed by C.

Regards,

Greg

:


:   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 23:16:21 +0000 Re: When is actual screen drawing done?, Greg Haerr
Next by date: 29 Nov 2005 23:16:21 +0000 Re: regarind viewml, Greg Haerr
Previous in thread: 29 Nov 2005 23:16:21 +0000 Problem with GrGetGCTextSize , Sébastien Chabert
Next in thread:


Powered by ezmlm-browse 0.20.