Ticket #9026: wince-engineInit.patch

File wince-engineInit.patch, 1.4 KB (added by fingolfin, 15 years ago)
  • backends/platform/wince/wince-sdl.cpp

    diff --git a/backends/platform/wince/wince-sdl.cpp b/backends/platform/wince/wince-sdl.cpp
    index 344edd7..9a4b312 100644
    a b int OSystem_WINCE3::getOutputSampleRate() const {  
    908908        return _sampleRate;
    909909}
    910910
    911 void OSystem_WINCE3::setWindowCaption(const char *caption) {
     911void OSystem_WINCE3::engineInit() {
    912912        check_mappings(); // called here to initialize virtual keys handling
    913913
    914914        //update_game_settings();
    915915        // finalize mixer init
    916916        compute_sample_rate();
    917917        setupMixer();
    918 
    919         // handle the actual event
    920         OSystem_SDL::setWindowCaption(caption);
    921918}
    922919
    923920bool OSystem_WINCE3::openCD(int drive) {
  • backends/platform/wince/wince-sdl.h

    diff --git a/backends/platform/wince/wince-sdl.h b/backends/platform/wince/wince-sdl.h
    index 13f20ec..cc2948f 100644
    a b public:  
    8484        // Overloaded from SDL backend (master volume and sample rate subtleties)
    8585        void setupMixer();
    8686        // Overloaded from OSystem
    87         //void engineInit();
     87        void engineInit();
    8888        void getTimeAndDate(struct tm &t) const;
    8989        virtual Common::SeekableReadStream *createConfigReadStream();
    9090        virtual Common::WriteStream *createConfigWriteStream();
    protected:  
    145145        //int getGraphicsMode() const;
    146146        int getDefaultGraphicsMode() const;
    147147
    148         void setWindowCaption(const char *caption);
    149148        bool openCD(int drive);
    150149        int getOutputSampleRate() const;
    151150