Guest User

Untitled

a guest
Apr 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include "CApp.h"
  2.  
  3. bool CApp::OnInit() {
  4. if(SDL_Init(SDL_INIT_EVERYTHING) < 0) {
  5. return false;
  6. }
  7.  
  8. if((Surf_Display = SDL_SetVideoMode(640, 480, 32, SDL_HWSURFACE | SDL_DOUBLEBUF)) == NULL) {
  9. return false;
  10. }
  11.  
  12. if((Surf_Test = CSurface::OnLoad("duke.bmp")) == NULL) {
  13. return false;
  14. }
  15.  
  16. return true;
  17. }
Add Comment
Please, Sign In to add comment