Ejemplo n.º 1
0
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 );
}
Ejemplo n.º 2
0
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
}
Ejemplo n.º 3
0
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);
}
Ejemplo n.º 4
0
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
}
Ejemplo n.º 5
0
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 );
}
Ejemplo n.º 6
0
void CSDL_Ext::setDefaultColorKey(SDL_Surface * surface)
{
	setColorKey(surface, Colors::DEFAULT_KEY_COLOR);
}