|
@@ -28,7 +28,7 @@ int main()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
+ SDL_Surface* grass = SDL_LoadBMP("textures/grass.bmp");
|
|
|
|
|
|
|
|
|
bool done(false);
|
|
@@ -56,7 +56,7 @@ int main()
|
|
|
|
|
|
SDL_FillRect(screen, 0, SDL_MapRGB(screen->format, 0, 255, 255));
|
|
|
|
|
|
-
|
|
|
+ SDL_BlitSurface(grass, 0x0, screen, 0x0);
|
|
|
|
|
|
SDL_Flip(screen);
|
|
|
|
|
@@ -64,6 +64,8 @@ int main()
|
|
|
}
|
|
|
|
|
|
|
|
|
+ SDL_FreeSurface(grass);
|
|
|
+
|
|
|
SDL_FreeSurface(screen);
|
|
|
|
|
|
std::cout << "No error caught." << std::endl;
|