bufferdrawing: fix for sdl1x