Skip to content

Commit

Permalink
Second wave of Surface x64 fixes: also fix return type of ioLockSurface
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-cellier-aka-nice committed Nov 12, 2016
1 parent 9b76e73 commit 4dae33d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platforms/Cross/plugins/SurfacePlugin/SurfacePlugin.c
Expand Up @@ -58,7 +58,7 @@ EXPORT(long) shutdownModule(void);

/* critical FXBlt entry points */
EXPORT(long) ioGetSurfaceFormat (long surfaceID, long* width, long* height, long* depth, long* isMSB);
EXPORT(long) ioLockSurface (long surfaceID, long *pitch, long x, long y, long w, long h);
EXPORT(sqIntptr_t) ioLockSurface (long surfaceID, long *pitch, long x, long y, long w, long h);
EXPORT(long) ioUnlockSurface(long surfaceID, long x, long y, long w, long h);

/* interpreter entry point */
Expand Down Expand Up @@ -87,7 +87,7 @@ EXPORT(long) ioGetSurfaceFormat (long surfaceID, long* width, long* height, long
Lock the bits of the surface.
Return a pointer to the actual surface bits,
or NULL on failure. */
EXPORT(long) ioLockSurface (long surfaceID, long *pitch, long x, long y, long w, long h)
EXPORT(sqIntptr_t) ioLockSurface (long surfaceID, long *pitch, long x, long y, long w, long h)
{
SqueakSurface *surface;
if(surfaceID < 0 || surfaceID >= maxSurfaces) FAIL;
Expand Down

0 comments on commit 4dae33d

Please sign in to comment.