Refactor sdl_canvas_size

There's no need to load all the OpenGL stuff to
test canvas size and resizing.
Don't increment result, return 1 on success or 0 on failure
Merge pull request #2460 from gsathya/clean_canvas_size

Refactor sdl_canvas_size