mirror of
https://github.com/vivier/EMILE.git
synced 2024-05-29 04:41:27 +00:00
a pointer to an array is the array itself
This commit is contained in:
parent
a60529b2fd
commit
64e1ab4983
|
@ -386,12 +386,12 @@ vga_init()
|
|||
|
||||
InitGraf(&qd.thePort);
|
||||
|
||||
ret = glue_display_properties((unsigned long*)&vga.base,
|
||||
ret = glue_display_properties((unsigned long*)vga.base,
|
||||
&vga.row_bytes,
|
||||
&vga.width,
|
||||
&vga.height,
|
||||
&vga.depth,
|
||||
(unsigned long*)&vga.video);
|
||||
(unsigned long*)vga.video);
|
||||
if (ret)
|
||||
{
|
||||
vga.base = qd.screenBits.baseAddr;
|
||||
|
|
|
@ -19,7 +19,7 @@ OSErr SerGetBuf(short refNum, long *count)
|
|||
|
||||
res = PBStatusSync((ParmBlkPtr)¶m);
|
||||
|
||||
*count = *(long*)¶m.csParam;
|
||||
*count = *(long*)param.csParam;
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
|
@ -387,12 +387,12 @@ vga_init()
|
|||
|
||||
InitGraf(&qd.thePort);
|
||||
|
||||
ret = glue_display_properties((unsigned long*)&vga.base,
|
||||
ret = glue_display_properties((unsigned long*)vga.base,
|
||||
&vga.row_bytes,
|
||||
&vga.width,
|
||||
&vga.height,
|
||||
&vga.depth,
|
||||
(unsigned long*)&vga.video);
|
||||
(unsigned long*)vga.video);
|
||||
if (ret)
|
||||
{
|
||||
vga.base = qd.screenBits.baseAddr;
|
||||
|
|
Loading…
Reference in New Issue
Block a user