Merge "screen_ui: Trivial fix to append newline when logging."
am: 594a63cc9d
Change-Id: Ib2c433d68cbb38627b1b40919428ba337f617fe6
This commit is contained in:
+2
-2
@@ -278,12 +278,12 @@ bool GraphicMenu::Validate(size_t max_width, size_t max_height, const GRSurface*
|
|||||||
bool GraphicMenu::ValidateGraphicSurface(size_t max_width, size_t max_height, int y,
|
bool GraphicMenu::ValidateGraphicSurface(size_t max_width, size_t max_height, int y,
|
||||||
const GRSurface* surface) {
|
const GRSurface* surface) {
|
||||||
if (!surface) {
|
if (!surface) {
|
||||||
fprintf(stderr, "Graphic surface can not be null");
|
fprintf(stderr, "Graphic surface can not be null\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (surface->pixel_bytes != 1 || surface->width != surface->row_bytes) {
|
if (surface->pixel_bytes != 1 || surface->width != surface->row_bytes) {
|
||||||
fprintf(stderr, "Invalid graphic surface, pixel bytes: %zu, width: %zu row_bytes: %zu",
|
fprintf(stderr, "Invalid graphic surface, pixel bytes: %zu, width: %zu row_bytes: %zu\n",
|
||||||
surface->pixel_bytes, surface->width, surface->row_bytes);
|
surface->pixel_bytes, surface->width, surface->row_bytes);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user