<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/fb/creator_vt.c, branch releng/12.2</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>vt(4): Fix mouse cursor handling in vt_fb/creator_vt/ofwfb</title>
<updated>2014-08-27T15:10:28+00:00</updated>
<author>
<name>Jean-Sébastien Pédron</name>
<email>dumbbell@FreeBSD.org</email>
</author>
<published>2014-08-27T15:10:28+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=84d623c61ee9e31a608c92589bde26be6be09505'/>
<id>84d623c61ee9e31a608c92589bde26be6be09505</id>
<content type='text'>
There were two issues:
    1. The area given to vt_is_cursor_in_area() was adding the drawable
       area offset, something already handled by this function.
    2. The cursor was shifted on the screen by the offset of this area
       and thus was misplaced or not erased. Furthermore, when reaching
       the bottom or right borders, the cursor was either totally
       removed or not erased correctly.

MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There were two issues:
    1. The area given to vt_is_cursor_in_area() was adding the drawable
       area offset, something already handled by this function.
    2. The cursor was shifted on the screen by the offset of this area
       and thus was misplaced or not erased. Furthermore, when reaching
       the bottom or right borders, the cursor was either totally
       removed or not erased correctly.

MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>vt(4): Store a rectangle for the drawable area, not just the top-left corner</title>
<updated>2014-08-25T19:06:31+00:00</updated>
<author>
<name>Jean-Sébastien Pédron</name>
<email>dumbbell@FreeBSD.org</email>
</author>
<published>2014-08-25T19:06:31+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=83fbb296a95b450d60da76991abc288208fa4f6d'/>
<id>83fbb296a95b450d60da76991abc288208fa4f6d</id>
<content type='text'>
This allows backends to verify they do not draw outside of this area.
This fixes a bug in vt_vga where the text was happily drawn over the
right and bottom margins, when using the Gallant font.

MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows backends to verify they do not draw outside of this area.
This fixes a bug in vt_vga where the text was happily drawn over the
right and bottom margins, when using the Gallant font.

MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>vt(4): Add vd_bitblt_bmp_t callback</title>
<updated>2014-08-23T20:35:33+00:00</updated>
<author>
<name>Jean-Sébastien Pédron</name>
<email>dumbbell@FreeBSD.org</email>
</author>
<published>2014-08-23T20:35:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=631bb572ba3beea0ffa9b371950a2b814ef0bcf3'/>
<id>631bb572ba3beea0ffa9b371950a2b814ef0bcf3</id>
<content type='text'>
The code was already there in all backends, we just expose it. This is
used to display the splash screen.

MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The code was already there in all backends, we just expose it. This is
used to display the splash screen.

MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>creator_fb: Implement vd_bitblt_text_t</title>
<updated>2014-08-23T15:04:20+00:00</updated>
<author>
<name>Jean-Sébastien Pédron</name>
<email>dumbbell@FreeBSD.org</email>
</author>
<published>2014-08-23T15:04:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=54927e051c938a05c9ad017aee8e0c9f14b5c2d6'/>
<id>54927e051c938a05c9ad017aee8e0c9f14b5c2d6</id>
<content type='text'>
MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>vt(4): Colors are indexed against a console palette, not a VGA palette</title>
<updated>2014-08-10T17:04:10+00:00</updated>
<author>
<name>Jean-Sébastien Pédron</name>
<email>dumbbell@FreeBSD.org</email>
</author>
<published>2014-08-10T17:04:10+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=19e2ce2d836709d4fc28d11ff7c76dd43000fdee'/>
<id>19e2ce2d836709d4fc28d11ff7c76dd43000fdee</id>
<content type='text'>
Rename vt_generate_vga_palette() to vt_generate_cons_palette() and
change it to build a palette where the color index is the same than in
terminal escape codes, not the VGA index. That's what TCHAR_CREATE()
uses and passes to vt(4).

The main differences between both orders are:
    o  Blue and red are swapped (1 &lt;-&gt; 4)
    o  Yellow and cyan are swapped (3 &lt;-&gt; 6)

The problem remained unnoticed, because the RGB bit indexes passed to
vt_generate_vga_palette() were reversed. This inversion was cancelled
by the colors inversions in the generated palette. For instance, red
(0xff0000) and blue (0x0000ff) have bytes in opposite order, but were
swapped in the palette. But after changing the value of blue (see last
paragraph), the modified color was in fact the red one.

This commit includes a fix to creator_vt.c, submitted by Nathan
Whitehorn: fb_cmsize is set to 16. Before this, the generated palette
would be overwritte. This fixes colors on sparc64 with a Creator3D
adapter.

While here, tune the palette to better match console colors and improve
the readability (especially the dark blue).

Submitted by:	nwhitehorn (fix to creator_vt.c)
MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename vt_generate_vga_palette() to vt_generate_cons_palette() and
change it to build a palette where the color index is the same than in
terminal escape codes, not the VGA index. That's what TCHAR_CREATE()
uses and passes to vt(4).

The main differences between both orders are:
    o  Blue and red are swapped (1 &lt;-&gt; 4)
    o  Yellow and cyan are swapped (3 &lt;-&gt; 6)

The problem remained unnoticed, because the RGB bit indexes passed to
vt_generate_vga_palette() were reversed. This inversion was cancelled
by the colors inversions in the generated palette. For instance, red
(0xff0000) and blue (0x0000ff) have bytes in opposite order, but were
swapped in the palette. But after changing the value of blue (see last
paragraph), the modified color was in fact the red one.

This commit includes a fix to creator_vt.c, submitted by Nathan
Whitehorn: fb_cmsize is set to 16. Before this, the generated palette
would be overwritte. This fixes colors on sparc64 with a Creator3D
adapter.

While here, tune the palette to better match console colors and improve
the readability (especially the dark blue).

Submitted by:	nwhitehorn (fix to creator_vt.c)
MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>Retire vd_maskbitbltchr. The same functionality can be obtained by testing</title>
<updated>2014-08-07T21:00:16+00:00</updated>
<author>
<name>Nathan Whitehorn</name>
<email>nwhitehorn@FreeBSD.org</email>
</author>
<published>2014-08-07T21:00:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0f3ec4da2f06d29b8291100cc6d569bf1425a197'/>
<id>0f3ec4da2f06d29b8291100cc6d569bf1425a197</id>
<content type='text'>
for mask != NULL in vd_bitbltchr, which all implementations of vd_bitbltchr()
were doing anyway.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
for mask != NULL in vd_bitbltchr, which all implementations of vd_bitbltchr()
were doing anyway.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a simple unaccelerated vt(4) framebuffer driver for Sun framebuffers</title>
<updated>2014-08-05T18:19:51+00:00</updated>
<author>
<name>Nathan Whitehorn</name>
<email>nwhitehorn@FreeBSD.org</email>
</author>
<published>2014-08-05T18:19:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c529ffef5730e82a05dcba3b3a636cf2aa88df96'/>
<id>c529ffef5730e82a05dcba3b3a636cf2aa88df96</id>
<content type='text'>
handled by creator(4) (Sun Creator 3D, Elite 3D, etc.). This provides
vt(4) consoles on all devices currently supported by syscons on sparc64.
The driver should also be easily adaptable to support newer Sun framebuffers
such as the XVR-500 and higher.

Many thanks to dumbbell@ (Jean-Sebastien Pedron) for testing this remotely
during development.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
handled by creator(4) (Sun Creator 3D, Elite 3D, etc.). This provides
vt(4) consoles on all devices currently supported by syscons on sparc64.
The driver should also be easily adaptable to support newer Sun framebuffers
such as the XVR-500 and higher.

Many thanks to dumbbell@ (Jean-Sebastien Pedron) for testing this remotely
during development.
</pre>
</div>
</content>
</entry>
</feed>
