fix prototype of getgfxoffset