aboutsummaryrefslogtreecommitdiffstats
path: root/fbcon.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-02-04 08:19:36 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-02-04 08:19:36 +0100
commit679347ddc22e82197c31ef89e388154084506f72 (patch)
treec60d383df85c5834a6b7c22e7351b65413e78851 /fbcon.c
parentfb7fa435af36197db5493775d01b4339484ae225 (diff)
downloadfbida-679347ddc22e82197c31ef89e388154084506f72.tar.gz
drm format wireup
Diffstat (limited to 'fbcon.c')
-rw-r--r--fbcon.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/fbcon.c b/fbcon.c
index d34eec2..b5fd57c 100644
--- a/fbcon.c
+++ b/fbcon.c
@@ -322,8 +322,13 @@ static void child_exec_shell(struct winsize *win)
#if 1
fprintf(stderr, "# \n");
- fprintf(stderr, "# This is fbcon @%s, using %s-%d.\n",
- seat_name, font_name, font_size);
+ fprintf(stderr, "# This is fbcon @%s, device %s, format %c%c%c%c, font %s-%d.\n",
+ seat_name, gfx->devpath,
+ (gfx->fmt->fourcc >> 0) & 0xff,
+ (gfx->fmt->fourcc >> 8) & 0xff,
+ (gfx->fmt->fourcc >> 16) & 0xff,
+ (gfx->fmt->fourcc >> 24) & 0xff,
+ font_name, font_size);
fprintf(stderr, "# \n");
#endif
@@ -398,7 +403,7 @@ int main(int argc, char *argv[])
/* init cairo */
surface1 = cairo_image_surface_create_for_data(gfx->mem,
- CAIRO_FORMAT_ARGB32,
+ gfx->fmt->cairo,
gfx->hdisplay,
gfx->vdisplay,
gfx->stride);
@@ -410,7 +415,7 @@ int main(int argc, char *argv[])
cairo_font_extents(context1, &extents);
if (gfx->mem2) {
surface2 = cairo_image_surface_create_for_data(gfx->mem2,
- CAIRO_FORMAT_ARGB32,
+ gfx->fmt->cairo,
gfx->hdisplay,
gfx->vdisplay,
gfx->stride);