~ubuntu-branches/debian/squeeze/stella/squeeze

« back to all changes in this revision

Viewing changes to src/macosx/SettingsMACOSX.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna, Franczen Attila, Luca Falavigna
  • Date: 2008-11-08 12:04:12 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20081108120412-w6xq87vzgokstfey
Tags: 2.6.1-0ubuntu1
[ Franczen Attila ]
* New upstream release (LP: #183571).
* Updated policy to 3.8.0.

[ Luca Falavigna ]
* debian/patches/gcc-4.3: fix FTBFS with gcc-4.3 compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
//  SS  SS   tt   ee      ll   ll  aa  aa
9
9
//   SSSS     ttt  eeeee llll llll  aaaaa
10
10
//
11
 
// Copyright (c) 1995-2005 by Bradford W. Mott and the Stella team
 
11
// Copyright (c) 1995-2008 by Bradford W. Mott and the Stella team
12
12
//
13
13
// See the file "license" for information on usage and redistribution of
14
14
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
15
15
//
16
 
// $Id: SettingsMACOSX.cxx,v 1.11 2006/03/09 03:16:30 markgrebe Exp $
 
16
// $Id: SettingsMACOSX.cxx,v 1.20 2008/02/06 13:45:24 stephena Exp $
17
17
//============================================================================
18
18
 
19
19
#include <cassert>
27
27
#include "bspf.hxx"
28
28
#include "Console.hxx"
29
29
#include "EventHandler.hxx"
 
30
#include "Version.hxx"
30
31
 
31
32
#include "Settings.hxx"
32
33
#include "SettingsMACOSX.hxx"
42
43
  : Settings(osystem)
43
44
{
44
45
  setInternal("video", "gl");        // Use opengl mode by default
45
 
  setInternal("gl_lib", "libGL.so");
 
46
  setInternal("gl_lib", "libGL.so"); // Try this one first, then let the system decide
 
47
  setInternal("gl_vsync", "true");   // OSX almost always supports vsync; let's use it
46
48
}
47
49
 
48
50
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
56
58
  string key, value;
57
59
  char cvalue[2048];
58
60
  
59
 
  // Write out each of the key and value pairs
 
61
  // Read key/value pairs from the plist file
60
62
  const SettingsArray& settings = getInternalSettings();
61
63
  for(unsigned int i = 0; i < settings.size(); ++i)
62
64
  {