[SDL] Questions about SDL 1.3

ebyard e_byard at yahoo.co.uk
Mon Dec 27 14:14:28 PST 2010


Got it. I'm being a dunce.


Code:

				dstRect.w = (float)srcRect.w * ((float)viewportWidth / 1024.0);
				dstRect.h = (float)srcRect.h * ((float)viewportHeight / 768.0);
				dstRect.x = (float)xPos * ((float)viewportWidth  / 1024.0);
				dstRect.y = (float)yPos * ((float)viewportHeight / 768.0);
				SDL_RenderCopy(mgtTextures[scrNum],&srcRect,&dstRect);




Ed




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20101227/a1487443/attachment-0008.htm>


More information about the SDL mailing list