~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/video/sdl_v.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman, Matthijs Kooijman
  • Date: 2009-10-01 22:52:59 UTC
  • mfrom: (1.1.8 upstream) (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091001225259-5kpkp4sthbszpyif
[ Matthijs Kooijman ]
* New upstream release
* Use printf instead of echo -en in openttd-wrapper to make it POSIX
  compatible (Closes: #547758).
* Remove three patches that are now included in upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: sdl_v.cpp 15299 2009-01-31 20:16:06Z smatz $ */
 
1
/* $Id: sdl_v.cpp 16704 2009-06-30 20:11:36Z rubidium $ */
2
2
 
3
3
/** @file sdl_v.cpp Implementation of the SDL video driver. */
4
4
 
426
426
        const char *s = SdlOpen(SDL_INIT_VIDEO);
427
427
        if (s != NULL) return s;
428
428
 
 
429
        GetVideoModes();
 
430
        if (!CreateMainSurface(_cur_resolution.width, _cur_resolution.height)) {
 
431
                return SDL_CALL SDL_GetError();
 
432
        }
 
433
 
429
434
        SDL_CALL SDL_VideoDriverName(buf, 30);
430
435
        DEBUG(driver, 1, "SDL: using driver '%s'", buf);
431
436
 
432
 
        GetVideoModes();
433
 
        CreateMainSurface(_cur_resolution.width, _cur_resolution.height);
434
437
        MarkWholeScreenDirty();
435
438
 
436
439
        SDL_CALL SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);