Skip to main content
GameDev.net gamedev.net
🔒 Locked

SDL Problem

Started by Mastadex Jan 5, 2005 at 3:08 PM 1 replies 600+ views
Original Post
Mastadex
Mastadex
I just made a bitmap image in paint, saved it as a 24bit bmp. what im trying to do is get this bitmap loaded and onto the screen. here is my code thus far, am i doing something wrong??

	SDL_Surface *screen;
	SDL_Surface *image;

	image = SDL_LoadBMP("d:\1.bmp");

	if (image > 0)
	{
		SDL_Rect sdest;
		sdest.x = 10;
		sdest.y = 10;
		SDL_BlitSurface(image, NULL, screen, &sdest);
	}
Mastadex
Mastadex
EDIT:

Apperently im out of it right now. I got it working tho.

[Edited by - Mastadex on January 5, 2005 5:15:03 PM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.