~ubuntu-branches/debian/sid/gource/sid

« back to all changes in this revision

Viewing changes to src/main.cpp

  • Committer: Package Import Robot
  • Author(s): Andrew Caudwell
  • Date: 2014-04-15 16:30:17 UTC
  • mfrom: (1.2.15)
  • Revision ID: package-import@ubuntu.com-20140415163017-ucdr2josj1spzrga
Tags: 0.41-1
* New upstream release
* Made VCS URIs canonical
* Changed watch file to look at Github for releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        }
110
110
 
111
111
        //write custom log file
112
 
        if(gGourceSettings.output_custom_filename.size() > 0 && gGourceSettings.path.size() > 0) {
 
112
        if(!gGourceSettings.output_custom_filename.empty() && !gGourceSettings.path.empty()) {
113
113
 
114
114
            Gource::writeCustomLog(gGourceSettings.path, gGourceSettings.output_custom_filename);
115
115
            exit(0);
142
142
 
143
143
        display.init("Gource", gGourceSettings.display_width, gGourceSettings.display_height, gGourceSettings.fullscreen);
144
144
 
 
145
#if SDL_VERSION_ATLEAST(2,0,0)
 
146
        SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
 
147
#endif
 
148
        
145
149
    } catch(SDLInitException& exception) {
146
150
 
147
151
        char errormsg[1024];