From: Geert U. <ge...@li...> - 2001-06-08 14:29:27
|
On Fri, 8 Jun 2001, Florian Lechner wrote: > Would you mind sending me your code, cos at the moment my screen is > pretty much screwed up, but not rotated.=20 I don't ave code for it. > I just tried to rotate the *s on putcs. last to first and mirrored ever= y > byte.=20 > Result--> mixed up screen color and chars.=20 >=20 > As far as I figured, the *s holds a bunch of bytes for the video_mem.=20 Yes, the string contains both characters and attributes. But you don't have to change the fbcon_putcs() routine, you have to chang= e the drawing routines in one of fbcon-*.c. > Geert Uytterhoeven wrote: > > On Fri, 8 Jun 2001, Florian Lechner wrote: > > > ANYBODY OUT there to help me? > > > > > > So my Question: > > > > > > I'm trying to rotate the fb by 180=B0. > >=20 > > In the console, or in X? > >=20 > > > Reason: > > > I have an embedded board ElanSC400, C&T 65550, etc. > > > > > > I'm reading the driver/video code for a couple of days now, and pin= ned > > > down myself to three points where I have to do changes to rotate th= e > > > display. > > > > > > fbcon.c --> fbcon_putc > > > fbcon.c --> fbcon_putcs > > > fbmem.c --> fb_write > > > > > > Is that correct? > >=20 > > For the console, I'd just write my own fbcon-*.c replacement (e.g. > > fbcon-cfb8-r180.c, cloned from fbcon-cfb8.c) where you take the rotat= ion in > > mind in the following functions: > >=20 > > - bmove > > - clear > > - putc > > - putcs > > - revc > > - clear_margins Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m6= 8k.org In personal conversations with technical people, I call myself a hacker. = But when I'm talking to journalists I just say "programmer" or something like= that. -- Linus Torvalds |