From bba45f645b8dce2d98d838bf447ff2a62b023b5e Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Wed, 30 Dec 2020 21:30:19 +0100 Subject: [PATCH] openfirmware: fixup video driver for 64bit We now have a bootsplash on sparc! Change-Id: I583a3015a86618292088fe4379f548467d30ec4f Reviewed-on: https://review.haiku-os.org/c/haiku/+/3572 Reviewed-by: waddlesplash --- src/system/boot/platform/openfirmware/video.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/boot/platform/openfirmware/video.cpp b/src/system/boot/platform/openfirmware/video.cpp index 455f30c816..41cbd4f935 100644 --- a/src/system/boot/platform/openfirmware/video.cpp +++ b/src/system/boot/platform/openfirmware/video.cpp @@ -15,7 +15,7 @@ //#define TRACE_VIDEO -static int sScreen; +static intptr_t sScreen; void @@ -58,10 +58,10 @@ platform_switch_to_logo(void) if (sScreen == OF_FAILED) return; - int package = of_instance_to_package(sScreen); + intptr_t package = of_instance_to_package(sScreen); if (package == OF_FAILED) return; - uint32 width, height; + uintptr_t width, height; if (of_call_method(sScreen, "dimensions", 0, 2, &height, &width) == OF_FAILED) { if (of_getprop(package, "width", &width, sizeof(int32)) == OF_FAILED)