linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug in software cursor flash code, when align!=1?
@ 2003-09-15  8:38 Thomas S. Iversen
  2003-09-21 11:50 ` Tony
  2003-09-21 12:55 ` Tony
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas S. Iversen @ 2003-09-15  8:38 UTC (permalink / raw)
  To: linux-fbdev-devel

Hi Again

Being puzzled by the fact that my software cursor did not work when
everything else worked with my accelerated routines I tried to investigate
where the problem was located. This being when scan_align!=1 which
my accel routines need.

I suspected the flash code in the software cursor routines, so I
changed the flash frequence to 1 per second. This showed me that
the first image (== combination of the cursor and the underlying char)
is good enough. After a second the cursor flash code gets called
and I get garbage where the cursor are. When I move the cursor to another
position I once more get one good image and garbage after that.

To rule out that my accell functions caused this I put in a

	for(i=0;i<64;i++)
		info->cursor.image.data[i]=1<<((i>>2) &0x07);

between

	info->cursor.image.data = dst;
        
and
        info->fbops->fb_imageblit(info, &info->cursor.image);

in softcursor.c. This gave me the expected / image all the time.
                                           /

I did not have the time to investigate this very much further, but I
suspect that the problem lies with the xor/copy functions in
softcursor.c not taking alignment into account on subsequent calls.

Just for information. 

Regards Thomas, Denmark


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-21 12:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-15  8:38 Bug in software cursor flash code, when align!=1? Thomas S. Iversen
2003-09-21 11:50 ` Tony
2003-09-21 12:55 ` Tony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).