void PrefAdvanced::setData(Preferences * pref) { setMonitorAspect( pref->monitor_aspect ); #if REPAINT_BACKGROUND_OPTION setRepaintVideoBackground( pref->repaint_video_background ); #endif setUseMplayerWindow( pref->use_mplayer_window ); setMplayerAdditionalArguments( pref->mplayer_additional_options ); setMplayerAdditionalVideoFilters( pref->mplayer_additional_video_filters ); setMplayerAdditionalAudioFilters( pref->mplayer_additional_audio_filters ); #if USE_COLORKEY setColorKey( pref->color_key ); #endif setPreferIpv4( pref->prefer_ipv4 ); setUseIdx( pref->use_idx ); setUseCorrectPts( pref->use_correct_pts ); setActionsToRun( pref->actions_to_run ); setShowTagInTitle( pref->show_tag_in_window_title ); setLogMplayer( pref->log_mplayer ); setMplayerLogVerbose( pref->verbose_log ); setLogSmplayer( pref->log_smplayer2 ); setLogFilter( pref->log_filter ); setSaveMplayerLog( pref->autosave_mplayer_log ); setMplayerLogName( pref->mplayer_log_saveto ); setSaveSmplayerLog( pref->save_smplayer2_log ); }
Image::Image(std::string filename) { setSurface(filename); //Loads entire image into memory setRect(); //Load entire image into rectangle setTileSize(surf->w, surf->h); //Sets tilesize using the entire image size setColorKey(0,0,0); //No colorkey }
Image::Image(std::string filename, int xPos, int yPos, int width, int height, int rkey, int gkey, int bkey) { setSurface(filename); setRect(xPos, yPos, width, height); setTileSize(width, height); setColorKey(rkey, gkey, bkey); }
Image::Image(std::string filename, int xPos, int yPos) { setSurface(filename); //Loads entire image into memory setRect(xPos, yPos, STDTILE, STDTILE); //Loads part of image specified by x and y position. Standard tilesize setTileSize(STDTILE, STDTILE); //Uses the default tilesize setColorKey(0,0,STDCKEY); //Uses the default colorkey }
void PrefAdvanced::setData(Preferences * pref) { setMonitorAspect( pref->monitor_aspect ); setClearBackground( pref->always_clear_video_background ); setUseMplayerWindow( pref->use_mplayer_window ); setMplayerAdditionalArguments( pref->mplayer_additional_options ); setMplayerAdditionalVideoFilters( pref->mplayer_additional_video_filters ); setMplayerAdditionalAudioFilters( pref->mplayer_additional_audio_filters ); setColorKey( pref->color_key ); setLogMplayer( pref->log_mplayer ); setLogSmplayer( pref->log_smplayer ); setLogFilter( pref->log_filter ); setEndOfFileText( pref->rx_endoffile ); setNoVideoText( pref->rx_novideo ); }
void CSDL_Ext::setDefaultColorKey(SDL_Surface * surface) { setColorKey(surface, Colors::DEFAULT_KEY_COLOR); }