git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARMv7 - Fix compiler and partial compilation
[tpg/acess2.git]
/
AcessNative
/
acesskernel_src
/
video.c
diff --git
a/AcessNative/acesskernel_src/video.c
b/AcessNative/acesskernel_src/video.c
index
b1b65b0
..
d78f6da
100644
(file)
--- a/
AcessNative/acesskernel_src/video.c
+++ b/
AcessNative/acesskernel_src/video.c
@@
-30,7
+30,9
@@
tVFS_NodeType gVideo_NodeType = {
};
tDevFS_Driver gVideo_DriverStruct = {
NULL, "NativeVideo",
};
tDevFS_Driver gVideo_DriverStruct = {
NULL, "NativeVideo",
- {.Type = &gVideo_NodeType}
+ {
+ .Type = &gVideo_NodeType
+ }
};
int giVideo_DriverID;
int giVideo_CurrentFormat;
};
int giVideo_DriverID;
int giVideo_CurrentFormat;
@@
-255,6
+257,8
@@
int Video_IOCtl(tVFS_Node *Node, int ID, void *Data)
// Video mode control
// - We cheat, and only have one mode
case VIDEO_IOCTL_GETSETMODE:
// Video mode control
// - We cheat, and only have one mode
case VIDEO_IOCTL_GETSETMODE:
+ // - Abuse GETSETMODE to update size
+ Node->Size = giUI_Pitch * giUI_Height;
return 0;
case VIDEO_IOCTL_FINDMODE:
case VIDEO_IOCTL_MODEINFO:
return 0;
case VIDEO_IOCTL_FINDMODE:
case VIDEO_IOCTL_MODEINFO:
UCC
git Repository :: git.ucc.asn.au