summaryrefslogtreecommitdiffstats
path: root/minui/graphics_fbdev.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-11-28 00:47:50 +0100
committerandroid-build-merger <android-build-merger@google.com>2018-11-28 00:47:50 +0100
commit8440d02d6d23abc202d18418cb9ecd5c8f7f9e8a (patch)
tree6a59978781611cd0c24123b5705ceae9b46cf3c6 /minui/graphics_fbdev.cpp
parentMerge "minui: Fix a wrong arg in calling GRSurface::Create()." am: ea4ec3149b am: 1166fd1855 (diff)
parentMerge "minui: GRSurface::Create() computes data_size on its own." am: a54b883607 (diff)
downloadandroid_bootable_recovery-8440d02d6d23abc202d18418cb9ecd5c8f7f9e8a.tar
android_bootable_recovery-8440d02d6d23abc202d18418cb9ecd5c8f7f9e8a.tar.gz
android_bootable_recovery-8440d02d6d23abc202d18418cb9ecd5c8f7f9e8a.tar.bz2
android_bootable_recovery-8440d02d6d23abc202d18418cb9ecd5c8f7f9e8a.tar.lz
android_bootable_recovery-8440d02d6d23abc202d18418cb9ecd5c8f7f9e8a.tar.xz
android_bootable_recovery-8440d02d6d23abc202d18418cb9ecd5c8f7f9e8a.tar.zst
android_bootable_recovery-8440d02d6d23abc202d18418cb9ecd5c8f7f9e8a.zip
Diffstat (limited to 'minui/graphics_fbdev.cpp')
-rw-r--r--minui/graphics_fbdev.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/minui/graphics_fbdev.cpp b/minui/graphics_fbdev.cpp
index 93e4420d3..8d9c9741d 100644
--- a/minui/graphics_fbdev.cpp
+++ b/minui/graphics_fbdev.cpp
@@ -32,8 +32,8 @@
#include "minui/minui.h"
-std::unique_ptr<GRSurfaceFbdev> GRSurfaceFbdev::Create(int width, int height, int row_bytes,
- int pixel_bytes) {
+std::unique_ptr<GRSurfaceFbdev> GRSurfaceFbdev::Create(size_t width, size_t height,
+ size_t row_bytes, size_t pixel_bytes) {
// Cannot use std::make_unique to access non-public ctor.
return std::unique_ptr<GRSurfaceFbdev>(new GRSurfaceFbdev(width, height, row_bytes, pixel_bytes));
}
@@ -130,7 +130,7 @@ GRSurface* MinuiBackendFbdev::Init() {
fb_fd = std::move(fd);
SetDisplayedFramebuffer(0);
- printf("framebuffer: %d (%d x %d)\n", fb_fd.get(), gr_draw->width, gr_draw->height);
+ printf("framebuffer: %d (%zu x %zu)\n", fb_fd.get(), gr_draw->width, gr_draw->height);
Blank(true);
Blank(false);