Re: What happened to the fonts?

2005-01-20 Thread Mark Vojkovich
On Thu, 20 Jan 2005, Marc Aurele La France wrote:

> On Thu, 20 Jan 2005, Bukie Mabayoje wrote:
> > Mark Vojkovich wrote:
> >>I synced up and built and now, though the server starts fine,
> >> apps can't get any fonts.  Window managers claim they can't find
> >> fontsets like fixed so menus and such have no text in them.
> >> xfontsel seems to work though.  Anyone know what's going on?
> >> It's like the fonts.alias isn't being read anymore.  I can
> >> see fixed in the fonts.alias and I can see the corresponding
> >> font in the fonts.dir and I can see that the font file exists
> >> and can verify that the server acknowledged that font path.
>
> > I am looking into a similar problem too, when xfs is not running.
>
> I've been able to make the fontset message appear with a simple test case
> (holding down the control key and pressing any mouse button while the pointer
> is in an xterm).

   I don't see that message with xterm.  TWM menus don't work though.
But, if I run TWM remotely from another machine it works.  I think
that implies that it's a problem with the local libraries.  Another
data point, is a test app that opens "fixed" seems to work fine, so
it's not the case that aliases are broken in general - just in some
cases.

Bukie, how long have you been seeing this problem?  I updated
yesterday and saw it for the first time.  The last time I updated
was Nov 26. so that gives a pretty large window.

Mark.


>
> I've also tried this with a build where CHANGELOG 264 is backed out and it
> still happens so something else is causing this.  CHANGELOG 264 is
>
> 264. In font handling, avoid potential security issues related to 
> wrap-around
>  of memory allocation requests (Marc La France).
>
> Marc.
>
> +--+---+
> |  Marc Aurele La France   |  work:   1-780-492-9310   |
> |  Computing and Network Services  |  fax:1-780-492-1729   |
> |  352 General Services Building   |  email:  [EMAIL PROTECTED]  |
> |  University of Alberta   +---+
> |  Edmonton, Alberta   |   |
> |  T6G 2H1 | Standard disclaimers apply|
> |  CANADA  |   |
> +--+---+
> XFree86 developer and VP.  ATI driver and X server internals.
> ___
> Devel mailing list
> Devel@XFree86.Org
> http://XFree86.Org/mailman/listinfo/devel
>
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


Re: Small issue in the ati/radeon dga driver

2005-01-20 Thread Marc Aurele La France
On Wed, 19 Jan 2005, Marc Aurele La France wrote:
On Mon, 17 Jan 2005, Michel Dänzer wrote:
On Sat, 2005-01-15 at 12:12 +, James Wright wrote:
   Not sure if this is the right place to report this but anyway;

"xc/programs/XServer/hw/xfree86/drivers/ati/radeon_dga.c"

Line 114: currentMode->imageHeight= (info->FbMapSize / 
currentMode->bytesPerScanline);

On my Radeon IGP chipset with 64MB of VideoRam, this value is calculated 
as
65536 (0x01). Although here the variable is a 32 bit integer, later in 
the
dga library this value is truncated to a 16 bit integer, causing the 
driver to
report the imageHeight as zero. I added a single line beneath Line
144 to clamp the value to the max a 16 bit iteger can hold;

if (currentMode->imageHeight > 0x) currentMode->imageHeight = 0x;

This fixes the problem for my radeon, but I think the other ati drivers 
may
suffer from the same problem, but I do not have the hardware to test.

Note that the Radeon 2D engine only supports signed 14 bit coordinates.

That's a good point, but not one against changing common code to at least 
clamp coordinates to the 16 bits the protocol handles.
I've just committed the "central" change for this, (Xext/xf86dga2.c).
As for lower 2D engine specific limits, they should only be enforced when the 
engine would actually be used for a particular DGA mode.  Usually, but not 
always, that's when the mode's DGA_CONCURRENT_ACCESS is off.

Marc.
+--+---+
|  Marc Aurele La France   |  work:   1-780-492-9310   |
|  Computing and Network Services  |  fax:1-780-492-1729   |
|  352 General Services Building   |  email:  [EMAIL PROTECTED]  |
|  University of Alberta   +---+
|  Edmonton, Alberta   |   |
|  T6G 2H1 | Standard disclaimers apply|
|  CANADA  |   |
+--+---+
XFree86 developer and VP.  ATI driver and X server internals.

Re: What happened to the fonts?

2005-01-20 Thread Marc Aurele La France
On Thu, 20 Jan 2005, Bukie Mabayoje wrote:
Mark Vojkovich wrote:
   I synced up and built and now, though the server starts fine,
apps can't get any fonts.  Window managers claim they can't find
fontsets like fixed so menus and such have no text in them.
xfontsel seems to work though.  Anyone know what's going on?
It's like the fonts.alias isn't being read anymore.  I can
see fixed in the fonts.alias and I can see the corresponding
font in the fonts.dir and I can see that the font file exists
and can verify that the server acknowledged that font path.

I am looking into a similar problem too, when xfs is not running.
I've been able to make the fontset message appear with a simple test case 
(holding down the control key and pressing any mouse button while the pointer 
is in an xterm).

I've also tried this with a build where CHANGELOG 264 is backed out and it 
still happens so something else is causing this.  CHANGELOG 264 is

   264. In font handling, avoid potential security issues related to wrap-around
of memory allocation requests (Marc La France).
Marc.
+--+---+
|  Marc Aurele La France   |  work:   1-780-492-9310   |
|  Computing and Network Services  |  fax:1-780-492-1729   |
|  352 General Services Building   |  email:  [EMAIL PROTECTED]  |
|  University of Alberta   +---+
|  Edmonton, Alberta   |   |
|  T6G 2H1 | Standard disclaimers apply|
|  CANADA  |   |
+--+---+
XFree86 developer and VP.  ATI driver and X server internals.
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


How to draw a line without a Drawable

2005-01-20 Thread Steven Webb
I want to draw a line across the entire screen, including all windows 
and the desktop but I'm not sure how to achieve this.  Any suggestions? 
 Should I use SDL?

Thanks.
Steve.
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


Re: X Scroll Event

2005-01-20 Thread Steven Webb
Thanks.  I actually ended up using the XTest extention but this probably 
would have worked to.

Steve.
Loic Grenie wrote:
I want to generate a Scroll event (identical to a scroll wheel on a 
mouse) but from software.  Is there a function that will let me do this? 
 I know there is XWarpPointer to move the pointer and XSendEvent but 
I'm not sure how to generate a scroll event.  Any info apprectiated.

Does a Scroll event in X mean the same thing as is sent from a mouse's 
scroll wheel?  Or is there another meaning (Like scrolling around a destop)?

   The wheel is just seen as a couple of buttons, usually button 4 for up and
  5 for down. You cannot generate "scroll" events but you can generate
  "scroll wheel" events by generating button 4 and/or 5 events. Be aware that
  an application is free to ignore "synthetic" events, that is: events
  generated by other applications.
Hope this helps,
  Loïc
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel
!DSPAM:41ee3454262151947916365!
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


Re: What happened to the fonts?

2005-01-20 Thread Bukie Mabayoje
I am looking into a similar problem too, when xfs is not running.

Mark Vojkovich wrote:

>I synced up and built and now, though the server starts fine,
> apps can't get any fonts.  Window managers claim they can't find
> fontsets like fixed so menus and such have no text in them.
> xfontsel seems to work though.  Anyone know what's going on?
> It's like the fonts.alias isn't being read anymore.  I can
> see fixed in the fonts.alias and I can see the corresponding
> font in the fonts.dir and I can see that the font file exists
> and can verify that the server acknowledged that font path.
>
> Mark.
> ___
> Devel mailing list
> Devel@XFree86.Org
> http://XFree86.Org/mailman/listinfo/devel
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel