Re: cannot convert 'SDL_DisplayMode' to 'SDL_DisplayMode*

"speartip" <[email protected]> Thu, 09 Feb 2017 15:36:09 +0000
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
Thank you Brian this is what it should have been. Always match your declarations and definitions!

Should be:

Code:

int gobot( int * horizontal, int* vertical, [b]SDL_DisplayMode* dm[/b] ) 




Works fine now. I did revert back to using pass by reference which simplified things a bit even though I know pointers are perfectly valid. So by using &var I could change the val in the subroutine without making a copy and keep the most up to date version in main.

Thank you![/code]

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org