Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2011, 9:54:03 PM (14 years ago)
Author:
landauf
Message:

merged revisions 8527-8530 from trunk to presentation branch:

  • 8527: build fix for mingw, d_ostream.open() is not defined for wchar
  • 8528: disable LOD for some of the debris meshes which cause a crash on old versions of Ogre
  • 8529: fixed lua error when pressing ESC ingame after closing the console
  • 8530: added config value to define the scroll speed in CEGUI listboxes. default 1 line.
Location:
code/branches/presentation/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/libraries/core/GUIManager.cc

    r8467 r8627  
    6565#endif
    6666
    67 #ifdef ORXONOX_PLATFORM_WINDOWS
     67#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined(ORXONOX_COMPILER_MINGW)
    6868#  include <windows.h>
    6969#endif
     
    7373#include "util/Debug.h"
    7474#include "util/Exception.h"
     75#include "util/Math.h"
    7576#include "util/OrxAssert.h"
    7677#include "ConfigValueIncludes.h"
     
    121122                d_ostream.close();
    122123
    123 #ifdef ORXONOX_PLATFORM_WINDOWS
     124#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined(ORXONOX_COMPILER_MINGW)
    124125            // filename.c_str() is UTF-8 encoded, but Windows expects characters
    125126            // according to the current codepage or UTF-16 (wchar)
     
    156157        }
    157158
    158 #ifdef ORXONOX_PLATFORM_WINDOWS
     159#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined(ORXONOX_COMPILER_MINGW)
    159160        /// Converts a UTF-8 character sequence to Windows UTF-16
    160161        static std::wstring utf8ToUtf16(const std::string& utf8text)
     
    355356    {
    356357        SetConfigValue(guiScheme_, GUIManager::defaultScheme_) .description("Changes the current GUI scheme.") .callback(this, &GUIManager::changedGUIScheme);
     358        SetConfigValue(numScrollLines_, 1).description("How many lines to scroll in a list if the scroll wheel is used");
    357359    }
    358360
     
    593595    void GUIManager::mouseScrolled(int abs, int rel)
    594596    {
    595         this->protectedCall(boost::bind(&CEGUI::System::injectMouseWheelChange, _1, (float)rel));
     597        this->protectedCall(boost::bind(&CEGUI::System::injectMouseWheelChange, _1, (float)sgn(rel) * this->numScrollLines_));
    596598    }
    597599
  • code/branches/presentation/src/libraries/core/GUIManager.h

    r8423 r8627  
    186186        std::string guiScheme_;
    187187
     188        int numScrollLines_; ///< How many lines to scroll in a list if the scroll wheel is used
     189
    188190    }; // tolua_export
    189191} // tolua_export
Note: See TracChangeset for help on using the changeset viewer.