nanogui: Thread: Problems with uwindows


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Problems with uwindows
From: Girija Deo ####@####.####
Date: 1 Aug 2001 06:25:04 -0000
Message-Id: <3B67A071.6506FFC2@cirrus.stpp.soft.net>

Hi,

I am trying to use microwindows-0.89pre7 on linux 2.4.0 (Cirrus Logic
board RevB), but facing lots of problems about fontsize, rectangle,
ellipse

1.Not able to change the font size.
------------------------------------
This is what i tried...
GR_FONT_ID  fontid;
fontid = GrCreateFont("times", 50, NULL);
GrSetGCFont(gc1, fontid);
GrText(window1, gc2, 40, 40, "Cirrus Logic", title_lenth, GR_TFASCII);

But whatever may be the fontsize (here its 50), there is no change in
the display.

2. Not able to draw perfect rectangle.
---------------------------------------
GrRect(window2, gc1, 5, 5, 300, 60);
but it draws rectangle in odd shape, both horrizontal lines of rectangle
are drawn outof the boundary (ie. end-point of horizontal lines do not
match with end-point of vertical line)
I tried drawing rectangle using GrPoly, or simply using lines, but the
effect is same.

3. How to use nxPaintNCArea( ) function ?

Thanks,
Girija






Subject: RE: [nanogui] Problems with uwindows
From: "Sadeesh Kumar" ####@####.####
Date: 1 Aug 2001 08:11:44 -0000
Message-Id: <NFBBKGGIGLALIIFDCDCICEPHCBAA.sadeesh@lgsi.co.in>

please find my replay quoted with ===>.

regards,
sadeesh

-----Original Message-----
From: Girija Deo ####@####.####
Sent: Wednesday, August 01, 2001 11:54 AM
To: ####@####.####
Subject: [nanogui] Problems with uwindows


Hi,

I am trying to use microwindows-0.89pre7 on linux 2.4.0 (Cirrus Logic
board RevB), but facing lots of problems about fontsize, rectangle,
ellipse

1.Not able to change the font size.
------------------------------------
This is what i tried...
GR_FONT_ID  fontid;
fontid = GrCreateFont("times", 50, NULL);
GrSetGCFont(gc1, fontid);
GrText(window1, gc2, 40, 40, "Cirrus Logic", title_lenth, GR_TFASCII);


======> Setting font to gc1, but for GrText u are passing gc2????.


But whatever may be the fontsize (here its 50), there is no change in
the display.

2. Not able to draw perfect rectangle.
---------------------------------------
GrRect(window2, gc1, 5, 5, 300, 60);
but it draws rectangle in odd shape, both horrizontal lines of rectangle
are drawn outof the boundary (ie. end-point of horizontal lines do not
match with end-point of vertical line)
I tried drawing rectangle using GrPoly, or simply using lines, but the
effect is same.

===> You no need to use GrPoly. It should work in GrRect itself. Anyhow will
try and let u know.

3. How to use nxPaintNCArea( ) function ?

Thanks,
Girija







---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####

Subject: Re: [nanogui] Problems with uwindows
From: Jordan Crouse ####@####.####
Date: 1 Aug 2001 14:10:19 -0000
Message-Id: <01080108103203.11059@cosmic>

To quote Girija Deo on Wednesday 01 August 2001 00:23:
> Hi,
>
> I am trying to use microwindows-0.89pre7 on linux 2.4.0 (Cirrus Logic
> board RevB), but facing lots of problems about fontsize, rectangle,
> ellipse
>
> 2. Not able to draw perfect rectangle.
> ---------------------------------------
> GrRect(window2, gc1, 5, 5, 300, 60);
> but it draws rectangle in odd shape, both horrizontal lines of rectangle
> are drawn outof the boundary (ie. end-point of horizontal lines do not
> match with end-point of vertical line)
> I tried drawing rectangle using GrPoly, or simply using lines, but the
> effect is same.

I would accept that the GrPoly might have miscaluculated the math, but if you 
draw the same thing using lines, then that takes any possibility of a math 
error out of the question.

So you are saying that 
--> GrLine(window2, gc1, 5, 5, 300,5)
--> GrLine(window2, gc1, 300, 5, 300,60)
--> GrLine(window2, gc1, 300, 60, 5,60)
--> GrLine(window2, gc1, 5, 5, 60,5,5)

Does the exact same error that you mentioned GrRect was doing? 

Can you send in some example code?
Jordan


Subject: Re: [nanogui] Problems with uwindows
From: "Greg Haerr" ####@####.####
Date: 1 Aug 2001 14:48:37 -0000
Message-Id: <053401c11a98$4b105fc0$3aba46a6@xmission.com>

: > 2. Not able to draw perfect rectangle.
: > ---------------------------------------
: > GrRect(window2, gc1, 5, 5, 300, 60);
: > but it draws rectangle in odd shape, both horrizontal lines of rectangle
: > are drawn outof the boundary (ie. end-point of horizontal lines do not
: > match with end-point of vertical line)
: 

This sounds like a framebuffer wrap problem.  What's the size of
the screen?

Regards,

Greg

Subject: Re: [nanogui] Problems with uwindows
From: "Greg Haerr" ####@####.####
Date: 2 Aug 2001 16:39:56 -0000
Message-Id: <064801c11b70$be77e4a0$3aba46a6@xmission.com>

: > : > GrRect(window2, gc1, 5, 5, 300, 60);
: > : > but it draws rectangle in odd shape, both horrizontal lines of rectangle
: > : > are drawn outof the boundary (ie. end-point of horizontal lines do not
: > : > match with end-point of vertical line)

I just stuck this code into the demo program src/demos/nanox/demo2.c,
line 56, under the expose event case, and there is no problem.  Please
duplicate this on your system.  I suspect a framebuffer or other issue.

Regards,

Greg

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.