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 <[email protected]>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user