ps: conditionally enable -T on non-DESKTOP build too
[oweals/busybox.git] / miscutils / fbsplash.c
index 1ea5d8ebb21a67411130eb2b2ef6cb70e663ac65..ec0f092dcb88c670d9b56300bea0ae3dac5a292e 100644 (file)
@@ -257,7 +257,9 @@ static void fb_drawimage(void)
 
        if (ENABLE_FEATURE_CLEAN_UP)
                free(head);
-
+       if (width != G.scr_var.xres || height != G.scr_var.yres)
+               bb_error_msg_and_die("PPM %dx%d does not match screen %dx%d",
+                                                        width, height, G.scr_var.xres, G.scr_var.yres);
        line_size = width*3;
        if (width > G.scr_var.xres)
                width = G.scr_var.xres;