Revision: 18664
http://xbmc.svn.sourceforge.net/xbmc/?rev=18664&view=rev
Author: bobo1on1
Date: 2009-03-18 17:36:32 +0000 (Wed, 18 Mar 2009)
Log Message:
-----------
merge with linuxport 18434
Modified Paths:
--------------
branches/xbmc-smoothvideo/Makefile.in
branches/xbmc-smoothvideo/README.osx
branches/xbmc-smoothvideo/guilib/ActionManager.h
branches/xbmc-smoothvideo/guilib/AnimatedGif.cpp
branches/xbmc-smoothvideo/guilib/AnimatedGif.h
branches/xbmc-smoothvideo/guilib/AudioContext.cpp
branches/xbmc-smoothvideo/guilib/AudioContext.h
branches/xbmc-smoothvideo/guilib/DirectXGraphics.cpp
branches/xbmc-smoothvideo/guilib/GUIAudioManager.cpp
branches/xbmc-smoothvideo/guilib/GUIAudioManager.h
branches/xbmc-smoothvideo/guilib/GUIBaseContainer.cpp
branches/xbmc-smoothvideo/guilib/GUIBaseContainer.h
branches/xbmc-smoothvideo/guilib/GUIBorderedImage.h
branches/xbmc-smoothvideo/guilib/GUIButtonControl.h
branches/xbmc-smoothvideo/guilib/GUICallback.h
branches/xbmc-smoothvideo/guilib/GUICheckMarkControl.h
branches/xbmc-smoothvideo/guilib/GUIColorManager.h
branches/xbmc-smoothvideo/guilib/GUIControl.cpp
branches/xbmc-smoothvideo/guilib/GUIControl.h
branches/xbmc-smoothvideo/guilib/GUIControlFactory.cpp
branches/xbmc-smoothvideo/guilib/GUIControlFactory.h
branches/xbmc-smoothvideo/guilib/GUIControlGroup.cpp
branches/xbmc-smoothvideo/guilib/GUIControlGroup.h
branches/xbmc-smoothvideo/guilib/GUIControlGroupList.h
branches/xbmc-smoothvideo/guilib/GUIDialog.cpp
branches/xbmc-smoothvideo/guilib/GUIDialog.h
branches/xbmc-smoothvideo/guilib/GUIEditControl.cpp
branches/xbmc-smoothvideo/guilib/GUIEditControl.h
branches/xbmc-smoothvideo/guilib/GUIFadeLabelControl.cpp
branches/xbmc-smoothvideo/guilib/GUIFadeLabelControl.h
branches/xbmc-smoothvideo/guilib/GUIFixedListContainer.h
branches/xbmc-smoothvideo/guilib/GUIFont.cpp
branches/xbmc-smoothvideo/guilib/GUIFont.h
branches/xbmc-smoothvideo/guilib/GUIFontManager.cpp
branches/xbmc-smoothvideo/guilib/GUIFontManager.h
branches/xbmc-smoothvideo/guilib/GUIFontTTF.cpp
branches/xbmc-smoothvideo/guilib/GUIFontTTF.h
branches/xbmc-smoothvideo/guilib/GUIImage.cpp
branches/xbmc-smoothvideo/guilib/GUIImage.h
branches/xbmc-smoothvideo/guilib/GUIIncludes.cpp
branches/xbmc-smoothvideo/guilib/GUIInfoColor.h
branches/xbmc-smoothvideo/guilib/GUILabelControl.cpp
branches/xbmc-smoothvideo/guilib/GUILabelControl.h
branches/xbmc-smoothvideo/guilib/GUIListContainer.cpp
branches/xbmc-smoothvideo/guilib/GUIListContainer.h
branches/xbmc-smoothvideo/guilib/GUIListGroup.h
branches/xbmc-smoothvideo/guilib/GUIListItem.h
branches/xbmc-smoothvideo/guilib/GUIListLabel.h
branches/xbmc-smoothvideo/guilib/GUIMessage.h
branches/xbmc-smoothvideo/guilib/GUIMoverControl.h
branches/xbmc-smoothvideo/guilib/GUIMultiImage.cpp
branches/xbmc-smoothvideo/guilib/GUIMultiImage.h
branches/xbmc-smoothvideo/guilib/GUIMultiSelectText.h
branches/xbmc-smoothvideo/guilib/GUIPanelContainer.cpp
branches/xbmc-smoothvideo/guilib/GUIPanelContainer.h
branches/xbmc-smoothvideo/guilib/GUIProgressControl.cpp
branches/xbmc-smoothvideo/guilib/GUIProgressControl.h
branches/xbmc-smoothvideo/guilib/GUIRSSControl.h
branches/xbmc-smoothvideo/guilib/GUIRadioButtonControl.h
branches/xbmc-smoothvideo/guilib/GUIResizeControl.h
branches/xbmc-smoothvideo/guilib/GUIScrollBarControl.h
branches/xbmc-smoothvideo/guilib/GUISelectButtonControl.h
branches/xbmc-smoothvideo/guilib/GUISettingsSliderControl.h
branches/xbmc-smoothvideo/guilib/GUISliderControl.h
branches/xbmc-smoothvideo/guilib/GUISound.cpp
branches/xbmc-smoothvideo/guilib/GUISound.h
branches/xbmc-smoothvideo/guilib/GUISpinControl.cpp
branches/xbmc-smoothvideo/guilib/GUISpinControl.h
branches/xbmc-smoothvideo/guilib/GUISpinControlEx.cpp
branches/xbmc-smoothvideo/guilib/GUISpinControlEx.h
branches/xbmc-smoothvideo/guilib/GUITextBox.h
branches/xbmc-smoothvideo/guilib/GUITextureSDL.cpp
branches/xbmc-smoothvideo/guilib/GUITextureSDL.h
branches/xbmc-smoothvideo/guilib/GUIToggleButtonControl.h
branches/xbmc-smoothvideo/guilib/GUIVideoControl.h
branches/xbmc-smoothvideo/guilib/GUIVisualisationControl.cpp
branches/xbmc-smoothvideo/guilib/GUIWindow.cpp
branches/xbmc-smoothvideo/guilib/GUIWindow.h
branches/xbmc-smoothvideo/guilib/GUIWindowManager.cpp
branches/xbmc-smoothvideo/guilib/GUIWindowManager.h
branches/xbmc-smoothvideo/guilib/GUIWrappingListContainer.h
branches/xbmc-smoothvideo/guilib/Geometry.h
branches/xbmc-smoothvideo/guilib/GraphicContext.cpp
branches/xbmc-smoothvideo/guilib/GraphicContext.h
branches/xbmc-smoothvideo/guilib/IMsgSenderCallback.h
branches/xbmc-smoothvideo/guilib/IMsgTargetCallback.h
branches/xbmc-smoothvideo/guilib/IWindowManagerCallback.h
branches/xbmc-smoothvideo/guilib/Key.cpp
branches/xbmc-smoothvideo/guilib/Key.h
branches/xbmc-smoothvideo/guilib/LocalizeStrings.cpp
branches/xbmc-smoothvideo/guilib/LocalizeStrings.h
branches/xbmc-smoothvideo/guilib/Shader.cpp
branches/xbmc-smoothvideo/guilib/SkinInfo.h
branches/xbmc-smoothvideo/guilib/StdString.h
branches/xbmc-smoothvideo/guilib/Surface.cpp
branches/xbmc-smoothvideo/guilib/Surface.h
branches/xbmc-smoothvideo/guilib/TextureBundle.cpp
branches/xbmc-smoothvideo/guilib/TextureBundle.h
branches/xbmc-smoothvideo/guilib/TextureManager.cpp
branches/xbmc-smoothvideo/guilib/TextureManager.h
branches/xbmc-smoothvideo/guilib/Tween.h
branches/xbmc-smoothvideo/guilib/VisibleEffect.cpp
branches/xbmc-smoothvideo/guilib/common/DirectInput.cpp
branches/xbmc-smoothvideo/guilib/common/DirectInputKeyboard.cpp
branches/xbmc-smoothvideo/guilib/common/DirectInputKeyboard.h
branches/xbmc-smoothvideo/guilib/common/DirectInputMouse.cpp
branches/xbmc-smoothvideo/guilib/common/Keyboard.cpp
branches/xbmc-smoothvideo/guilib/common/Keyboard.h
branches/xbmc-smoothvideo/guilib/common/LIRC.cpp
branches/xbmc-smoothvideo/guilib/common/Mouse.h
branches/xbmc-smoothvideo/guilib/common/SDLJoystick.cpp
branches/xbmc-smoothvideo/guilib/common/SDLJoystick.h
branches/xbmc-smoothvideo/guilib/common/SDLKeyboard.cpp
branches/xbmc-smoothvideo/guilib/common/SDLKeyboard.h
branches/xbmc-smoothvideo/guilib/common/SDLMouse.cpp
branches/xbmc-smoothvideo/guilib/gui3d.h
branches/xbmc-smoothvideo/language/Czech/strings.xml
branches/xbmc-smoothvideo/language/English/strings.xml
branches/xbmc-smoothvideo/language/Greek/strings.xml
branches/xbmc-smoothvideo/language/Korean/strings.xml
branches/xbmc-smoothvideo/language/Russian/strings.xml
branches/xbmc-smoothvideo/language/Swedish/strings.xml
branches/xbmc-smoothvideo/project/VS2003/XBMC_PC.vcproj
branches/xbmc-smoothvideo/scripts/examples.zip
branches/xbmc-smoothvideo/skin/PM3.HD/720p/DialogVideoInfo.xml
branches/xbmc-smoothvideo/skin/PM3.HD/720p/ViewsVideoLibrary.xml
branches/xbmc-smoothvideo/skin/Project Mayhem III/PAL/DialogVideoInfo.xml
branches/xbmc-smoothvideo/system/Keymap.xml
branches/xbmc-smoothvideo/system/scrapers/video/adultdvdempire.xml
branches/xbmc-smoothvideo/tools/Linux/xbmc.sh.in
branches/xbmc-smoothvideo/tools/XBMCLive/Creator/platforms/i386-intrepid-xbmc/initramfs/cd
branches/xbmc-smoothvideo/tools/XBMCLive/Creator/platforms/i386-jaunty-xbmc/initramfs/cd
branches/xbmc-smoothvideo/tools/XBMCLive/installXBMC.py
branches/xbmc-smoothvideo/tools/XBMCLive/runXBMC.sh
branches/xbmc-smoothvideo/tools/XBMCLive/xbmc
branches/xbmc-smoothvideo/xbmc/Album.cpp
branches/xbmc-smoothvideo/xbmc/Application.cpp
branches/xbmc-smoothvideo/xbmc/ApplicationMessenger.cpp
branches/xbmc-smoothvideo/xbmc/ApplicationRenderer.cpp
branches/xbmc-smoothvideo/xbmc/DetectDVDType.cpp
branches/xbmc-smoothvideo/xbmc/DetectDVDType.h
branches/xbmc-smoothvideo/xbmc/Favourites.cpp
branches/xbmc-smoothvideo/xbmc/FileItem.cpp
branches/xbmc-smoothvideo/xbmc/FileItem.h
branches/xbmc-smoothvideo/xbmc/FileSystem/ASAPFileDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/ASAPFileDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/CMythDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/CMythFile.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/CMythFile.h
branches/xbmc-smoothvideo/xbmc/FileSystem/CMythSession.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/CacheMemBuffer.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/CacheMemBuffer.h
branches/xbmc-smoothvideo/xbmc/FileSystem/CacheStrategy.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/CacheStrategy.h
branches/xbmc-smoothvideo/xbmc/FileSystem/DAAPDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/Directory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/Directory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/DirectoryCache.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/DirectoryCache.h
branches/xbmc-smoothvideo/xbmc/FileSystem/DirectoryTuxBox.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/DllLibCMyth.h
branches/xbmc-smoothvideo/xbmc/FileSystem/DllLibCurl.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/DllLibCurl.h
branches/xbmc-smoothvideo/xbmc/FileSystem/FTPDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FTPDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/FTPParse.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FTPParse.h
branches/xbmc-smoothvideo/xbmc/FileSystem/FactoryDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FactoryDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/FactoryFileDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/File.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/File.h
branches/xbmc-smoothvideo/xbmc/FileSystem/FileCache.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FileCache.h
branches/xbmc-smoothvideo/xbmc/FileSystem/FileCurl.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FileCurl.h
branches/xbmc-smoothvideo/xbmc/FileSystem/FileDAAP.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FileDAAP.h
branches/xbmc-smoothvideo/xbmc/FileSystem/FileFactory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FileFileReader.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FileFileReader.h
branches/xbmc-smoothvideo/xbmc/FileSystem/FileHD.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FileISO.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FileRTV.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FileRar.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FileRar.h
branches/xbmc-smoothvideo/xbmc/FileSystem/FileShoutcast.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FileSmb.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FileSmb.h
branches/xbmc-smoothvideo/xbmc/FileSystem/FileXBMSP.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FileZip.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/FileZip.h
branches/xbmc-smoothvideo/xbmc/FileSystem/HDDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/HDHomeRun.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/HDHomeRun.h
branches/xbmc-smoothvideo/xbmc/FileSystem/HTTPDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/IDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/IDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/IFile.h
branches/xbmc-smoothvideo/xbmc/FileSystem/LastFMDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/LastFMDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/MultiPathDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNode.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNodeAlbumRecentlyPlayed.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/MusicDatabaseDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/MusicFileDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/NSFFileDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/PlaylistFileDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/PlaylistFileDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/PluginDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/RSSDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/RarDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/RarDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/RarManager.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/RarManager.h
branches/xbmc-smoothvideo/xbmc/FileSystem/RingBuffer.h
branches/xbmc-smoothvideo/xbmc/FileSystem/SAPDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/SAPFile.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/SIDFileDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/SMBDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/SMBDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/ShoutcastDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/SmartPlaylistDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/SmartPlaylistDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/SpecialProtocol.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/StackDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/StackDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/UPnPDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/UPnPVirtualPathDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/UPnPVirtualPathDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/VTPFile.h
branches/xbmc-smoothvideo/xbmc/FileSystem/VTPSession.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNode.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/VideoDatabaseDirectory/DirectoryNodeMusicVideosOverview.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/VideoDatabaseDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/VirtualDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/VirtualPathDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/XBMSDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/ZipDirectory.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/ZipDirectory.h
branches/xbmc-smoothvideo/xbmc/FileSystem/ZipManager.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/ZipManager.h
branches/xbmc-smoothvideo/xbmc/FileSystem/cddb.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/cdioSupport.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/curl/curlbuild.h
branches/xbmc-smoothvideo/xbmc/FileSystem/iso9660.cpp
branches/xbmc-smoothvideo/xbmc/FileSystem/iso9660.h
branches/xbmc-smoothvideo/xbmc/FileSystem/zconf.h
branches/xbmc-smoothvideo/xbmc/FileSystem/zlib.h
branches/xbmc-smoothvideo/xbmc/GUIDialogAudioSubtitleSettings.cpp
branches/xbmc-smoothvideo/xbmc/GUIDialogContentSettings.cpp
branches/xbmc-smoothvideo/xbmc/GUIDialogContextMenu.cpp
branches/xbmc-smoothvideo/xbmc/GUIDialogFileBrowser.cpp
branches/xbmc-smoothvideo/xbmc/GUIDialogProfileSettings.cpp
branches/xbmc-smoothvideo/xbmc/GUIDialogSmartPlaylistRule.cpp
branches/xbmc-smoothvideo/xbmc/GUILargeTextureManager.cpp
branches/xbmc-smoothvideo/xbmc/GUIMediaWindow.cpp
branches/xbmc-smoothvideo/xbmc/GUISettings.cpp
branches/xbmc-smoothvideo/xbmc/GUISettings.h
branches/xbmc-smoothvideo/xbmc/GUIViewStateMusic.cpp
branches/xbmc-smoothvideo/xbmc/GUIViewStatePictures.cpp
branches/xbmc-smoothvideo/xbmc/GUIViewStatePrograms.cpp
branches/xbmc-smoothvideo/xbmc/GUIViewStateVideo.cpp
branches/xbmc-smoothvideo/xbmc/GUIWindowFullScreen.cpp
branches/xbmc-smoothvideo/xbmc/GUIWindowMusicBase.cpp
branches/xbmc-smoothvideo/xbmc/GUIWindowMusicInfo.cpp
branches/xbmc-smoothvideo/xbmc/GUIWindowMusicNav.cpp
branches/xbmc-smoothvideo/xbmc/GUIWindowMusicPlaylist.cpp
branches/xbmc-smoothvideo/xbmc/GUIWindowMusicSongs.cpp
branches/xbmc-smoothvideo/xbmc/GUIWindowPictures.cpp
branches/xbmc-smoothvideo/xbmc/GUIWindowSettingsCategory.cpp
branches/xbmc-smoothvideo/xbmc/GUIWindowSlideShow.cpp
branches/xbmc-smoothvideo/xbmc/GUIWindowTestPattern.cpp
branches/xbmc-smoothvideo/xbmc/GUIWindowVideoBase.cpp
branches/xbmc-smoothvideo/xbmc/GUIWindowVideoFiles.cpp
branches/xbmc-smoothvideo/xbmc/GUIWindowVideoInfo.cpp
branches/xbmc-smoothvideo/xbmc/GUIWindowVideoNav.cpp
branches/xbmc-smoothvideo/xbmc/LastFmManager.cpp
branches/xbmc-smoothvideo/xbmc/MediaManager.cpp
branches/xbmc-smoothvideo/xbmc/MusicDatabase.cpp
branches/xbmc-smoothvideo/xbmc/MusicInfoScanner.cpp
branches/xbmc-smoothvideo/xbmc/MusicInfoTagLoaderMidi.cpp
branches/xbmc-smoothvideo/xbmc/MusicInfoTagLoaderMod.h
branches/xbmc-smoothvideo/xbmc/NfoFile.cpp
branches/xbmc-smoothvideo/xbmc/Picture.cpp
branches/xbmc-smoothvideo/xbmc/PictureInfoTag.cpp
branches/xbmc-smoothvideo/xbmc/PlayList.cpp
branches/xbmc-smoothvideo/xbmc/PlayListFactory.cpp
branches/xbmc-smoothvideo/xbmc/PlayListPLS.cpp
branches/xbmc-smoothvideo/xbmc/PlayListXML.cpp
branches/xbmc-smoothvideo/xbmc/Settings.cpp
branches/xbmc-smoothvideo/xbmc/Settings.h
branches/xbmc-smoothvideo/xbmc/StringUtils.cpp
branches/xbmc-smoothvideo/xbmc/ThumbLoader.cpp
branches/xbmc-smoothvideo/xbmc/UPnP.cpp
branches/xbmc-smoothvideo/xbmc/URL.cpp
branches/xbmc-smoothvideo/xbmc/Util.cpp
branches/xbmc-smoothvideo/xbmc/Util.h
branches/xbmc-smoothvideo/xbmc/VideoDatabase.cpp
branches/xbmc-smoothvideo/xbmc/VideoDatabase.h
branches/xbmc-smoothvideo/xbmc/VideoInfoScanner.cpp
branches/xbmc-smoothvideo/xbmc/VideoInfoScanner.h
branches/xbmc-smoothvideo/xbmc/VideoInfoTag.cpp
branches/xbmc-smoothvideo/xbmc/XBApplicationEx.cpp
branches/xbmc-smoothvideo/xbmc/XBVideoConfig.cpp
branches/xbmc-smoothvideo/xbmc/cores/AudioRenderers/ALSADirectSound.h
branches/xbmc-smoothvideo/xbmc/cores/AudioRenderers/AudioRendererFactory.cpp
branches/xbmc-smoothvideo/xbmc/cores/AudioRenderers/AudioRendererFactory.h
branches/xbmc-smoothvideo/xbmc/cores/AudioRenderers/NullDirectSound.h
branches/xbmc-smoothvideo/xbmc/cores/AudioRenderers/PortaudioDirectSound.h
branches/xbmc-smoothvideo/xbmc/cores/AudioRenderers/PulseAudioDirectSound.h
branches/xbmc-smoothvideo/xbmc/cores/AudioRenderers/Win32DirectSound.h
branches/xbmc-smoothvideo/xbmc/cores/DllLoader/Win32DllLoader.cpp
branches/xbmc-smoothvideo/xbmc/cores/VideoRenderers/LinuxRendererGL.cpp
branches/xbmc-smoothvideo/xbmc/cores/dvdplayer/DVDAudio.h
branches/xbmc-smoothvideo/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
branches/xbmc-smoothvideo/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxHTSP.cpp
branches/xbmc-smoothvideo/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxHTSP.h
branches/xbmc-smoothvideo/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStream.h
branches/xbmc-smoothvideo/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamHTSP.cpp
branches/xbmc-smoothvideo/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamHTSP.h
branches/xbmc-smoothvideo/xbmc/cores/dvdplayer/DVDPlayer.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/AACcodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/AACcodec.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/AC3CDDACodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/AC3Codec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/AC3Codec.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/ADPCMCodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/AIFFcodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/APEcodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/AdplugCodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/AudioDecoder.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/CDDAcodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/CDDAcodec.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/CodecFactory.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/DTSCDDACodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/DllLibFlac.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/DllLibshnplay.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/DllMACDll.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/DllTimidity.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/DllVorbisfile.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/FLACcodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/GYMCodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/MP3codec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/MP3codec.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/MPCcodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/ModuleCodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/NSFCodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/OGGcodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/RingHoldBuffer.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/SHNcodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/SIDCodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/SPCCodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/SPCCodec.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/TimidityCodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/TimidityCodec.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/VGMCodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/WAVPackcodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/WAVPackcodec.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/WMACodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/WMACodec.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/YMCodec.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/dec_if.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/paplayer.h
branches/xbmc-smoothvideo/xbmc/cores/paplayer/paplayer_linux.cpp
branches/xbmc-smoothvideo/xbmc/cores/paplayer/paplayer_win32.cpp
branches/xbmc-smoothvideo/xbmc/karaoke/GUIDialogKaraokeSongSelector.cpp
branches/xbmc-smoothvideo/xbmc/karaoke/karaokelyrics.cpp
branches/xbmc-smoothvideo/xbmc/karaoke/karaokelyrics.h
branches/xbmc-smoothvideo/xbmc/karaoke/karaokelyricscdg.cpp
branches/xbmc-smoothvideo/xbmc/karaoke/karaokelyricscdg.h
branches/xbmc-smoothvideo/xbmc/karaoke/karaokelyricsfactory.cpp
branches/xbmc-smoothvideo/xbmc/karaoke/karaokelyricsfactory.h
branches/xbmc-smoothvideo/xbmc/karaoke/karaokelyricsmanager.cpp
branches/xbmc-smoothvideo/xbmc/karaoke/karaokelyricsmanager.h
branches/xbmc-smoothvideo/xbmc/karaoke/karaokelyricstext.cpp
branches/xbmc-smoothvideo/xbmc/karaoke/karaokelyricstext.h
branches/xbmc-smoothvideo/xbmc/karaoke/karaokelyricstextkar.cpp
branches/xbmc-smoothvideo/xbmc/karaoke/karaokelyricstextkar.h
branches/xbmc-smoothvideo/xbmc/karaoke/karaokelyricstextlrc.cpp
branches/xbmc-smoothvideo/xbmc/karaoke/karaokelyricstextlrc.h
branches/xbmc-smoothvideo/xbmc/karaoke/karaokewindowbackground.cpp
branches/xbmc-smoothvideo/xbmc/karaoke/karaokewindowbackground.h
branches/xbmc-smoothvideo/xbmc/lib/libGoAhead/XBMChttp.cpp
branches/xbmc-smoothvideo/xbmc/lib/libGoAhead/XBMChttp.h
branches/xbmc-smoothvideo/xbmc/lib/libSDL-OSX/buildSDL-osx.sh
branches/xbmc-smoothvideo/xbmc/lib/libSDL-OSX/libSDL-osx.a
branches/xbmc-smoothvideo/xbmc/lib/libSDL-OSX/libSDL_image-osx.a
branches/xbmc-smoothvideo/xbmc/lib/libSDL-OSX/libSDL_mixer-osx.a
branches/xbmc-smoothvideo/xbmc/lib/libSDL-OSX/libSDLmain-osx.a
branches/xbmc-smoothvideo/xbmc/linux/HalManager.cpp
branches/xbmc-smoothvideo/xbmc/linux/LinuxFileSystem.cpp
branches/xbmc-smoothvideo/xbmc/osx/CocoaUtils.h
branches/xbmc-smoothvideo/xbmc/osx/CocoaUtils.m
branches/xbmc-smoothvideo/xbmc/utils/CharsetConverter.cpp
branches/xbmc-smoothvideo/xbmc/utils/CriticalSection.cpp
branches/xbmc-smoothvideo/xbmc/utils/GUIInfoManager.cpp
branches/xbmc-smoothvideo/xbmc/utils/GUIInfoManager.h
branches/xbmc-smoothvideo/xbmc/utils/PCMAmplifier.cpp
branches/xbmc-smoothvideo/xbmc/utils/ScraperUrl.cpp
branches/xbmc-smoothvideo/xbmc/utils/SystemInfo.cpp
branches/xbmc-smoothvideo/xbmc/utils/md5.cpp
branches/xbmc-smoothvideo/xbmc/utils/md5.h
branches/xbmc-smoothvideo/xbmc/visualizations/Goom/build_xbmc_win32.sh
branches/xbmc-smoothvideo/xbmc/visualizations/XBMCProjectM/build_projectM_win32.sh
branches/xbmc-smoothvideo/xbmc/win32/XBMC_PC.cpp
branches/xbmc-smoothvideo/xbmc/xbmc.cpp
branches/xbmc-smoothvideo/xbmc/xbox/IoSupport.cpp
branches/xbmc-smoothvideo/xbmc/xbox/IoSupport.h
Added Paths:
-----------
branches/xbmc-smoothvideo/skin/PM3.HD/language/Czech/
branches/xbmc-smoothvideo/skin/PM3.HD/language/Czech/strings.xml
branches/xbmc-smoothvideo/tools/XBMCLive/setAlsaVolumes.py
branches/xbmc-smoothvideo/xbmc/cores/AudioRenderers/IAudioRenderer.h
branches/xbmc-smoothvideo/xbmc/lib/libSDL-OSX/SDL_SetWidthHeight.diff
Removed Paths:
-------------
branches/xbmc-smoothvideo/xbmc/cores/AudioRenderers/IDirectSoundRenderer.h
branches/xbmc-smoothvideo/xbmc/lib/libSDL-OSX/SDL-1.2.13-xbmc.patch
branches/xbmc-smoothvideo/xbmc/osx/SDL_private.h
Modified: branches/xbmc-smoothvideo/Makefile.in
===================================================================
--- branches/xbmc-smoothvideo/Makefile.in 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/Makefile.in 2009-03-18 17:36:32 UTC (rev 18664)
@@ -397,9 +397,11 @@
read -n1 PROMPT; \
if [[ "$$PROMPT" = "Y" ]]; then \
SVNV=$$(svnversion -n | cut -d':' -f1); _IFS=$$IFS; IFS=$$'\t\n'; \
- for i in `svn st --no-ignore | grep ^[I\?] | cut -d' ' -f7-`; \
- do echo " Deleting $$i"; \
- rm -rf "$$i"; \
+ for i in `svn st --no-ignore | grep ^[I\?] | cut -d' ' -f7-`; do \
+ if [[ $${i:(-4)} != "diff" && $${i:(-5)} != "patch" ]]; then \
+ echo " Deleting $$i"; \
+ rm -rf "$$i"; \
+ fi; \
done; \
IFS=$$_IFS; \
echo " Recovering any missing files."; \
Modified: branches/xbmc-smoothvideo/README.osx
===================================================================
--- branches/xbmc-smoothvideo/README.osx 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/README.osx 2009-03-18 17:36:32 UTC (rev 18664)
@@ -14,7 +14,7 @@
This is a platform port of XBMC for the Apple OSX operating system. Both 10.5
and 10.4 Intel platforms are supported. The current build system is Xcode 2.5
-or Xcode 3.x. There are two ways to build XBMC for Mac. 1) command-line or
+or Xcode 3.1.2 There are two ways to build XBMC for Mac. 1) command-line or
2) Xcode. Generally, Xcode is the easiest as it presents the build system
in a GUI environment.
@@ -82,9 +82,9 @@
$ sudo port install portaudio
$ sudo port install fontconfig
$ sudo port install cmake
- $ sudo port install libsdl
- $ sudo port install libsdl_mixer
- $ sudo port install libsdl_image
+ $ sudo port install libsdl
+ $ sudo port install libsdl_mixer
+ $ sudo port install libsdl_image
$ sudo port install samba3
@@ -171,7 +171,7 @@
You can specify "Release" instead of "Debug" as a configuration.
-----------------------------------------------------------------------------
-4.3 Using Terminal (command-line)
+4.2 Using Terminal (command-line) (this is a work in progress and might fail)
-----------------------------------------------------------------------------
$ cd $HOME/XBMC
$ make externals more_libs
Modified: branches/xbmc-smoothvideo/guilib/ActionManager.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/ActionManager.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/ActionManager.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file ActionManager.h
-\brief
+\brief
*/
#pragma once
@@ -32,7 +32,7 @@
/*!
\ingroup actionkeys
- \brief
+ \brief
*/
class CActionManager
{
@@ -48,6 +48,6 @@
/*!
\ingroup actionkeys
- \brief
+ \brief
*/
extern CActionManager g_actionManager;
Modified: branches/xbmc-smoothvideo/guilib/AnimatedGif.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/AnimatedGif.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/AnimatedGif.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -36,7 +36,7 @@
#define fopen_utf8 fopen
#endif
-#pragma pack(1)
+#pragma pack(1)
// Error processing macro (NO-OP by default):
#define ERRORMSG(PARAM) {}
@@ -45,7 +45,7 @@
#define BI_RLE8 1L
#define BI_RLE4 2L
#define BI_BITFIELDS 3L
-#endif
+#endif
// pre-declaration:
int LZWDecoder (char*, char*, short, int, int, int, const int);
Modified: branches/xbmc-smoothvideo/guilib/AnimatedGif.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/AnimatedGif.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/AnimatedGif.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file AnimatedGif.h
-\brief
+\brief
*/
@@ -45,7 +45,7 @@
/*!
\ingroup textures
- \brief
+ \brief
*/
typedef struct tagGUIRGBQUAD
{
@@ -58,7 +58,7 @@
/*!
\ingroup textures
- \brief
+ \brief
*/
typedef struct tagGUIBITMAPINFOHEADER
{
@@ -78,7 +78,7 @@
/*!
\ingroup textures
- \brief
+ \brief
*/
#if defined(_LINUX)
typedef struct tagBITMAPINFO
Modified: branches/xbmc-smoothvideo/guilib/AudioContext.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/AudioContext.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/AudioContext.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -62,7 +62,7 @@
m_pAC97Device=NULL;
#endif
m_pDirectSoundDevice=NULL;
-#endif
+#endif
}
CAudioContext::~CAudioContext()
@@ -121,8 +121,8 @@
++iter;
}
#else
- if(iDevice == DIRECTSOUND_DEVICE_DIGITAL
- && ( g_digitaldevice.Data1 || g_digitaldevice.Data2
+ if(iDevice == DIRECTSOUND_DEVICE_DIGITAL
+ && ( g_digitaldevice.Data1 || g_digitaldevice.Data2
|| g_digitaldevice.Data3 || g_digitaldevice.Data4 ))
guid = &g_digitaldevice;
#endif
@@ -159,7 +159,7 @@
CLog::Log(LOGERROR, "Failed to create audio device");
return;
}
-#endif
+#endif
g_audioManager.Initialize(m_iDevice);
}
@@ -180,7 +180,7 @@
SAFE_RELEASE(m_pAC97Device);
#endif
SAFE_RELEASE(m_pDirectSoundDevice);
-#endif
+#endif
}
// \brief set a new speaker config
@@ -190,14 +190,14 @@
bAudioOnAllSpeakers = false;
#ifdef HAS_AUDIO
- DWORD spconfig = DSSPEAKER_USE_DEFAULT;
+ DWORD spconfig = DSSPEAKER_USE_DEFAULT;
if (g_guiSettings.GetInt("audiooutput.mode") == AUDIO_DIGITAL)
{
if (((g_guiSettings.GetBool("musicplayer.outputtoallspeakers")) && (bIsMusic)) || (g_stSettings.m_currentVideoSettings.m_OutputToAllSpeakers && !bIsMusic))
{
if( g_audioConfig.GetAC3Enabled() )
{
- bAudioOnAllSpeakers = true;
+ bAudioOnAllSpeakers = true;
m_bAC3EncoderActive = true;
spconfig = DSSPEAKER_USE_DEFAULT; //Allows ac3 encoder should it be enabled
}
@@ -206,10 +206,10 @@
if (iChannels == 1)
spconfig = DSSPEAKER_MONO;
else
- {
+ {
spconfig = DSSPEAKER_STEREO;
}
- }
+ }
}
else
{
@@ -229,8 +229,8 @@
if (iChannels == 1)
spconfig = DSSPEAKER_MONO;
else
- {
- // check if surround mode is allowed, if not then use normal stereo
+ {
+ // check if surround mode is allowed, if not then use normal stereo
// don't always set it to default as that enabled ac3 encoder if that is allowed in dash
// ruining quality
spconfig = DSSPEAKER_STEREO;
@@ -246,7 +246,7 @@
/* speaker config identical, no need to do anything */
if(spconfig == spconfig_old) return;
-#endif
+#endif
/* speaker config has changed, caller need to recreate it */
RemoveActiveDevice();
Modified: branches/xbmc-smoothvideo/guilib/AudioContext.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/AudioContext.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/AudioContext.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file AudioContext.h
-\brief
+\brief
*/
#pragma once
Modified: branches/xbmc-smoothvideo/guilib/DirectXGraphics.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/DirectXGraphics.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/DirectXGraphics.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -149,7 +149,7 @@
}
// filesize = headersize + bytesPerLine * number of lines
bh.filesize = bh.headersize + bytesPerLine * bh.height;
-
+
file.Write(&bh.id, sizeof(bh) - 2*sizeof(char));
BYTE *lineBuf = new BYTE[bytesPerLine];
@@ -296,16 +296,16 @@
alpha[4] = (4 * alpha[0] + 3 * alpha[1] + 3) / 7; // bit code 100
alpha[5] = (3 * alpha[0] + 4 * alpha[1] + 3) / 7; // bit code 101
alpha[6] = (2 * alpha[0] + 5 * alpha[1] + 3) / 7; // bit code 110
- alpha[7] = (1 * alpha[0] + 6 * alpha[1] + 3) / 7; // bit code 111
+ alpha[7] = (1 * alpha[0] + 6 * alpha[1] + 3) / 7; // bit code 111
}
else
- {
+ {
alpha[2] = (4 * alpha[0] + 1 * alpha[1] + 2) / 5; // Bit code 010
alpha[3] = (3 * alpha[0] + 2 * alpha[1] + 2) / 5; // Bit code 011
alpha[4] = (2 * alpha[0] + 3 * alpha[1] + 2) / 5; // Bit code 100
alpha[5] = (1 * alpha[0] + 4 * alpha[1] + 2) / 5; // Bit code 101
alpha[6] = 0; // Bit code 110
- alpha[7] = 255; // Bit code 111
+ alpha[7] = 255; // Bit code 111
}
// ok, now grab the bits
BYTE a[4][4];
@@ -408,7 +408,7 @@
#else
*ppTexture = SDL_CreateRGBSurface(SDL_HWSURFACE, width, height, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);
#endif
- if (SDL_LockSurface(*ppTexture) == 0)
+ if (SDL_LockSurface(*ppTexture) == 0)
#endif
{
BYTE *texDataStart = (BYTE *)texData;
Modified: branches/xbmc-smoothvideo/guilib/GUIAudioManager.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIAudioManager.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIAudioManager.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -160,9 +160,9 @@
CSingleLock lock(m_cs);
actionSoundMap::iterator it=m_actionSoundMap.find(action.wID);
- if (it==m_actionSoundMap.end())
+ if (it==m_actionSoundMap.end())
return;
-
+
if (m_actionSound)
{
delete m_actionSound;
@@ -269,7 +269,7 @@
// subfolder of the folder "sounds" in the root directory of
// xbmc
bool CGUIAudioManager::Load()
-{
+{
m_actionSoundMap.clear();
m_windowSoundMap.clear();
@@ -287,14 +287,14 @@
}
else
m_strMediaDir = CUtil::AddFileToFolder("special://xbmc/sounds", g_guiSettings.GetString("lookandfeel.soundskin"));
-
+
CStdString strSoundsXml = CUtil::AddFileToFolder(m_strMediaDir, "sounds.xml");
// Load our xml file
TiXmlDocument xmlDoc;
CLog::Log(LOGINFO, "Loading %s", strSoundsXml.c_str());
-
+
// Load the config file
if (!xmlDoc.LoadFile(strSoundsXml))
{
Modified: branches/xbmc-smoothvideo/guilib/GUIAudioManager.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIAudioManager.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIAudioManager.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -20,7 +20,7 @@
* http://www.gnu.org/copyleft/gpl.html
*
*/
-
+
#include "IAudioDeviceChangedCallback.h"
#include "utils/CriticalSection.h"
Modified: branches/xbmc-smoothvideo/guilib/GUIBaseContainer.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIBaseContainer.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIBaseContainer.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -82,7 +82,7 @@
}
if (item != m_lastItem && HasFocus())
{
- item->GetFocusedLayout()->ResetAnimation(ANIM_TYPE_UNFOCUS);
+ item->GetFocusedLayout()->ResetAnimation(ANIM_TYPE_UNFOCUS);
unsigned int subItem = 1;
if (m_lastItem && m_lastItem->GetFocusedLayout())
subItem = m_lastItem->GetFocusedLayout()->GetFocusedItem();
@@ -125,7 +125,7 @@
case ACTION_MOVE_UP:
{
if (!HasFocus()) return false;
- if (action.holdTime > HOLD_TIME_START &&
+ if (action.holdTime > HOLD_TIME_START &&
((m_orientation == VERTICAL && (action.wID == ACTION_MOVE_UP || action.wID == ACTION_MOVE_DOWN)) ||
(m_orientation == HORIZONTAL && (action.wID == ACTION_MOVE_LEFT || action.wID == ACTION_MOVE_RIGHT))))
{ // action is held down - repeat a number of times
@@ -185,7 +185,7 @@
default:
if (action.wID)
- {
+ {
return OnClick(action.wID);
}
}
Modified: branches/xbmc-smoothvideo/guilib/GUIBaseContainer.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIBaseContainer.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIBaseContainer.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIListContainer.h
-\brief
+\brief
*/
#pragma once
@@ -35,7 +35,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIBaseContainer : public CGUIControl
@@ -60,7 +60,7 @@
virtual void UpdateVisibility(const CGUIListItem *item = NULL);
virtual unsigned int GetRows() const;
-
+
virtual bool HasNextPage() const;
virtual bool HasPreviousPage() const;
Modified: branches/xbmc-smoothvideo/guilib/GUIBorderedImage.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIBorderedImage.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIBorderedImage.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -39,7 +39,7 @@
virtual void AllocResources();
virtual void FreeResources();
virtual void DynamicResourceAlloc(bool bOnOff);
-
+
protected:
CGUITexture m_borderImage;
FRECT m_borderSize;
Modified: branches/xbmc-smoothvideo/guilib/GUIButtonControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIButtonControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIButtonControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIButtonControl.h
-\brief
+\brief
*/
#ifndef GUILIB_GUIBUTTONCONTROL_H
@@ -34,7 +34,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIButtonControl : public CGUIControl
{
Modified: branches/xbmc-smoothvideo/guilib/GUICallback.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUICallback.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUICallback.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -104,19 +104,19 @@
{
GUIEvent<Cookie>::m_pInstance = (GUIEvent<Cookie>*) ((LPVOID) pInstance);
-#ifndef _LINUX
+#ifndef _LINUX
// Its dirty but it works!
memcpy(&m_pMethod, &aMethodPtr, sizeof(GUIEvent<Cookie>::m_pMethod));
-#else
+#else
// Well, GCC doesn't like that dirty stuff... here's another version of the same thing
- // but even dirtier *grin*
+ // but even dirtier *grin*
#define my_offsetof(TYPE, MEMBER) \
((size_t)((char *)&(((TYPE *)0x10)->MEMBER) - (char*)0x10))
void* target = (void*) (((char*) this) + my_offsetof(GUIEvent<Cookie>, m_pMethod));
memcpy(target, &aMethodPtr, sizeof(GUIEvent<Cookie>::m_pMethod));
-#endif
+#endif
}
};
Modified: branches/xbmc-smoothvideo/guilib/GUICheckMarkControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUICheckMarkControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUICheckMarkControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUICheckMarkControl.h
-\brief
+\brief
*/
#ifndef CGUILIB_GUICHECKMARK_CONTROL_H
@@ -35,7 +35,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUICheckMarkControl: public CGUIControl
{
Modified: branches/xbmc-smoothvideo/guilib/GUIColorManager.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIColorManager.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIColorManager.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIColorManager.h
-\brief
+\brief
*/
#ifndef GUILIB_COLORMANAGER_H
@@ -31,7 +31,7 @@
/*!
\ingroup textures
- \brief
+ \brief
*/
class CGUIColorManager
{
@@ -55,7 +55,7 @@
/*!
\ingroup textures
- \brief
+ \brief
*/
extern CGUIColorManager g_colorManager;
#endif
Modified: branches/xbmc-smoothvideo/guilib/GUIControl.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIControl.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIControl.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -118,7 +118,7 @@
m_bAllocated=false;
}
m_hasRendered = false;
-}
+}
void CGUIControl::DynamicResourceAlloc(bool bOnOff)
{
@@ -562,7 +562,7 @@
void CGUIControl::QueueAnimation(ANIMATION_TYPE animType)
{
// rule out the animations we shouldn't perform
- if (!IsVisible() || !HasRendered())
+ if (!IsVisible() || !HasRendered())
{ // hidden or never rendered - don't allow exit or entry animations for this control
if (animType == ANIM_TYPE_WINDOW_CLOSE)
{ // could be animating a (delayed) window open anim, so reset it
@@ -818,3 +818,12 @@
}
}
+CPoint CGUIControl::GetRenderPosition() const
+{
+ float z = 0;
+ CPoint point(m_posX, m_posY);
+ m_transform.TransformPosition(point.x, point.y, z);
+ if (m_parentControl)
+ point += m_parentControl->GetRenderPosition();
+ return point;
+}
Modified: branches/xbmc-smoothvideo/guilib/GUIControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIControl.h
-\brief
+\brief
*/
#ifndef GUILIB_GUICONTROL_H
@@ -154,6 +154,7 @@
virtual void SetHitRect(const CRect &rect);
virtual void SetCamera(const CPoint &camera);
void SetColorDiffuse(const CGUIInfoColor &color);
+ CPoint GetRenderPosition() const;
virtual float GetXPosition() const;
virtual float GetYPosition() const;
virtual float GetWidth() const;
Modified: branches/xbmc-smoothvideo/guilib/GUIControlFactory.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIControlFactory.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIControlFactory.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -375,7 +375,7 @@
{
if (node->Attribute("x")) g_SkinInfo.ResolveConstant(node->Attribute("x"), rect.x1);
if (node->Attribute("y")) g_SkinInfo.ResolveConstant(node->Attribute("y"), rect.y1);
- if (node->Attribute("w"))
+ if (node->Attribute("w"))
{
g_SkinInfo.ResolveConstant(node->Attribute("w"), rect.x2);
rect.x2 += rect.x1;
@@ -926,7 +926,7 @@
// fade label can have a whole bunch, but most just have one
vector<CGUIInfoLabel> infoLabels;
GetInfoLabels(pControlNode, "label", infoLabels);
-
+
GetString(pControlNode, "label", strLabel);
GetString(pControlNode, "altlabel", altLabel);
GetString(pControlNode, "label2", strLabel2);
@@ -1226,7 +1226,7 @@
{
control = new CGUIProgressControl(
dwParentId, id, posX, posY, width, height,
- textureBackground, textureLeft, textureMid, textureRight,
+ textureBackground, textureLeft, textureMid, textureRight,
textureOverlay, rMin, rMax, bReveal);
((CGUIProgressControl *)control)->SetInfo(singleInfo);
}
@@ -1363,7 +1363,7 @@
dwParentId, id + 2, posX, posY, width, height,
imageNoFocus, imageFocus,
itemWidthBig, itemHeightBig,
- textureWidthBig, textureHeightBig,
+ textureWidthBig, textureHeightBig,
thumbXPosBig, thumbYPosBig, thumbWidthBig, thumbHeightBig, dwThumbAlign, aspect,
labelInfo, thumbPanelHideLabels, NULL, NULL);
@@ -1379,7 +1379,7 @@
dwParentId, id, posX, posY, width, height,
imageNoFocus, imageFocus,
itemWidth, itemHeight,
- textureWidth, textureHeight,
+ textureWidth, textureHeight,
thumbXPos, thumbYPos, thumbWidth, thumbHeight, dwThumbAlign, aspect,
labelInfo, thumbPanelHideLabels, pSpin, pPanel);
Modified: branches/xbmc-smoothvideo/guilib/GUIControlFactory.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIControlFactory.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIControlFactory.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GuiControlFactory.h
-\brief
+\brief
*/
#ifndef GUI_CONTROL_FACTORY_H
@@ -38,7 +38,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIControlFactory
{
Modified: branches/xbmc-smoothvideo/guilib/GUIControlGroup.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIControlGroup.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIControlGroup.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -426,7 +426,7 @@
const CGUIControl *control = group->GetControl(iControl);
if (control) pControl = control;
}
- if ((int) pControl->GetID() == iControl)
+ if ((int) pControl->GetID() == iControl)
{
if (pControl->IsVisible())
return pControl;
Modified: branches/xbmc-smoothvideo/guilib/GUIControlGroup.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIControlGroup.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIControlGroup.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIControlGroup.h
-\brief
+\brief
*/
#pragma once
Modified: branches/xbmc-smoothvideo/guilib/GUIControlGroupList.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIControlGroupList.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIControlGroupList.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIControlGroupList.h
-\brief
+\brief
*/
#pragma once
Modified: branches/xbmc-smoothvideo/guilib/GUIDialog.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIDialog.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIDialog.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -43,7 +43,7 @@
void CGUIDialog::OnWindowLoaded()
{
CGUIWindow::OnWindowLoaded();
-
+
// Clip labels to extents
if (m_vecControls.size())
{
@@ -180,7 +180,7 @@
if (m_bRunning && !m_dialogClosing && !IsAnimating(ANIM_TYPE_WINDOW_CLOSE)) return;
m_bModal = false;
-
+
// set running before it's added to the window manager, else the auto-show code
// could show it as well if we are in a different thread from
// the main rendering thread (this should really be handled via
@@ -226,7 +226,7 @@
{
Close(true);
}
-
+
if (m_autoClosing && m_showStartTime + m_showDuration < timeGetTime() && !m_dialogClosing)
{
Close();
Modified: branches/xbmc-smoothvideo/guilib/GUIDialog.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIDialog.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIDialog.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIDialog.h
-\brief
+\brief
*/
#pragma once
@@ -30,7 +30,7 @@
/*!
\ingroup winmsg
- \brief
+ \brief
*/
class CGUIDialog :
public CGUIWindow
Modified: branches/xbmc-smoothvideo/guilib/GUIEditControl.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIEditControl.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIEditControl.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -104,7 +104,7 @@
else if (action.wID >= KEY_ASCII)
{
// input from the keyboard
- switch (action.unicode)
+ switch (action.unicode)
{
case '\t':
break;
@@ -237,7 +237,7 @@
{ // we render taking up the full width, so make sure our cursor position is
// within the render window
if (m_textOffset + afterCursorWidth > maxTextWidth)
- {
+ {
// move the position to the left (outside of the viewport)
m_textOffset = maxTextWidth - afterCursorWidth;
}
Modified: branches/xbmc-smoothvideo/guilib/GUIEditControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIEditControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIEditControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIEditControl.h
-\brief
+\brief
*/
#ifndef GUILIB_GUIEditControl_H
@@ -33,7 +33,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIEditControl : public CGUIButtonControl
Modified: branches/xbmc-smoothvideo/guilib/GUIFadeLabelControl.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIFadeLabelControl.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIFadeLabelControl.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -126,7 +126,7 @@
float posY = m_posY;
if (m_label.align & XBFONT_CENTER_Y)
posY += m_height * 0.5f;
- if (m_infoLabels.size() == 1 && m_shortText)
+ if (m_infoLabels.size() == 1 && m_shortText)
{ // single label set and no scrolling required - just display
m_textLayout.Render(m_posX + m_label.offsetX, posY, 0, m_label.textColor, m_label.shadowColor, (m_label.align & ~3), m_width - m_label.offsetX);
CGUIControl::Render();
Modified: branches/xbmc-smoothvideo/guilib/GUIFadeLabelControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIFadeLabelControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIFadeLabelControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIFadeLabelControl.h
-\brief
+\brief
*/
#ifndef GUILIB_GUIFADELABELCONTROL_H
@@ -35,7 +35,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIFadeLabelControl : public CGUIControl
{
Modified: branches/xbmc-smoothvideo/guilib/GUIFixedListContainer.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIFixedListContainer.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIFixedListContainer.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIFixedListContainer.h
-\brief
+\brief
*/
#pragma once
@@ -30,7 +30,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIFixedListContainer : public CGUIBaseContainer
{
Modified: branches/xbmc-smoothvideo/guilib/GUIFont.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIFont.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIFont.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -54,7 +54,7 @@
m_shadowColor = shadowColor;
m_lineSpacing = lineSpacing;
m_font = font;
-
+
if (m_font)
m_font->AddReference();
}
@@ -78,7 +78,7 @@
bool clip = maxPixelWidth > 0;
if (clip && ClippedRegionIsEmpty(x, y, maxPixelWidth, alignment))
return;
-
+
maxPixelWidth = ROUND(maxPixelWidth / g_graphicsContext.GetGUIScaleX());
std::vector<DWORD> renderColors;
for (unsigned int i = 0; i < colors.size(); i++)
@@ -249,14 +249,14 @@
return m_font->GetLineHeight(m_lineSpacing) * g_graphicsContext.GetGUIScaleY();
}
-void CGUIFont::Begin()
-{
+void CGUIFont::Begin()
+{
if (!m_font) return;
- m_font->Begin();
+ m_font->Begin();
}
-void CGUIFont::End()
-{
+void CGUIFont::End()
+{
if (!m_font) return;
- m_font->End();
+ m_font->End();
}
Modified: branches/xbmc-smoothvideo/guilib/GUIFont.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIFont.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIFont.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIFont.h
-\brief
+\brief
*/
#ifndef CGUILIB_GUIFONT_H
@@ -30,7 +30,7 @@
{
public:
CScrollInfo(unsigned int wait = 50, float pos = 0, int speed = defaultSpeed, const CStdStringW &scrollSuffix = L" | ")
- {
+ {
initialWait = wait;
initialPos = pos;
SetSpeed(speed);
@@ -80,7 +80,7 @@
/*!
\ingroup textures
- \brief
+ \brief
*/
class CGUIFont
{
@@ -115,17 +115,17 @@
DWORD GetStyle() const { return m_style; };
static SHORT RemapGlyph(SHORT letter);
-
+
CGUIFontTTF* GetFont() const
{
return m_font;
}
-
+
void SetFont(CGUIFontTTF* font)
{
m_font = font;
}
-
+
protected:
CStdString m_strFontName;
DWORD m_style;
@@ -133,7 +133,7 @@
DWORD m_textColor;
float m_lineSpacing;
CGUIFontTTF *m_font; // the font object has the size information
-
+
private:
bool ClippedRegionIsEmpty(float x, float y, float width, DWORD alignment) const;
};
Modified: branches/xbmc-smoothvideo/guilib/GUIFontManager.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIFontManager.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIFontManager.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -47,7 +47,7 @@
CGUIFont* GUIFontManager::LoadTTF(const CStdString& strFontName, const CStdString& strFilename, DWORD textColor, DWORD shadowColor, const int iSize, const int iStyle, float lineSpacing, float aspect, RESOLUTION sourceRes)
{
float originalAspect = aspect;
-
+
//check if font already exists
CGUIFont* pFont = GetFont(strFontName, false);
if (pFont)
@@ -69,7 +69,7 @@
aspect *= g_graphicsContext.GetGUIScaleY() / g_graphicsContext.GetGUIScaleX();
float newSize = (float) iSize / g_graphicsContext.GetGUIScaleY();
-
+
// First try to load the font from the skin
CStdString strPath;
if (!CURL::IsFullPath(strFilename))
@@ -92,7 +92,7 @@
strPath = PTH_IC(strPath);
#endif
}
-
+
// check if we already have this font file loaded (font object could differ only by color or style)
CStdString TTFfontName;
TTFfontName.Format("%s_%f_%f", strFilename, newSize, aspect);
@@ -112,22 +112,22 @@
return NULL;
}
-
+
m_vecFontFiles.push_back(pFontFile);
}
// font file is loaded, create our CGUIFont
CGUIFont *pNewFont = new CGUIFont(strFontName, iStyle, textColor, shadowColor, lineSpacing, pFontFile);
m_vecFonts.push_back(pNewFont);
-
+
// Store the original TTF font info in case we need to reload it in a different resolution
OrigFontInfo fontInfo;
fontInfo.size = iSize;
fontInfo.aspect = originalAspect;
fontInfo.fontFilePath = strPath;
fontInfo.fileName = strFilename;
- m_vecFontInfo.push_back(fontInfo);
-
+ m_vecFontInfo.push_back(fontInfo);
+
return pNewFont;
}
@@ -137,13 +137,13 @@
return; // we haven't even loaded fonts in yet
g_graphicsContext.SetScalingResolution(m_skinResolution, 0, 0, true);
-
+
for (unsigned int i = 0; i < m_vecFonts.size(); i++)
{
CGUIFont* font = m_vecFonts[i];
- OrigFontInfo fontInfo = m_vecFontInfo[i];
+ OrigFontInfo fontInfo = m_vecFontInfo[i];
CGUIFontTTF* currentFontTTF = font->GetFont();
-
+
float aspect = fontInfo.aspect;
int iSize = fontInfo.size;
CStdString& strPath = fontInfo.fontFilePath;
@@ -152,13 +152,13 @@
// #ifdef PRE_SKIN_VERSION_2_1_COMPATIBILITY
if (g_SkinInfo.GetVersion() > 2.0 && (m_skinResolution == PAL_16x9 || m_skinResolution == PAL60_16x9 || m_skinResolution == NTSC_16x9 || m_skinResolution == HDTV_480p_16x9))
aspect *= 0.75f;
-
+
aspect *= g_graphicsContext.GetGUIScaleY() / g_graphicsContext.GetGUIScaleX();
float newSize = (float) iSize / g_graphicsContext.GetGUIScaleY();
CStdString TTFfontName;
TTFfontName.Format("%s_%f_%f", strFilename, newSize, aspect);
- CGUIFontTTF* pFontFile = GetFontFile(TTFfontName);
+ CGUIFontTTF* pFontFile = GetFontFile(TTFfontName);
if (!pFontFile)
{
pFontFile = new CGUIFontTTF(TTFfontName);
@@ -167,15 +167,15 @@
if (!bFontLoaded)
{
- delete pFontFile;
+ delete pFontFile;
// font could not b loaded
CLog::Log(LOGERROR, "Couldn't re-load font file:%s", strPath.c_str());
return;
}
-
+
m_vecFontFiles.push_back(pFontFile);
}
-
+
font->SetFont(pFontFile);
}
}
Modified: branches/xbmc-smoothvideo/guilib/GUIFontManager.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIFontManager.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIFontManager.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIFontManager.h
-\brief
+\brief
*/
#ifndef GUILIB_FONTMANAGER_H
@@ -47,7 +47,7 @@
/*!
\ingroup textures
- \brief
+ \brief
*/
class GUIFontManager
{
@@ -64,7 +64,7 @@
bool IsFontSetUnicode() { return m_fontsetUnicode; }
bool IsFontSetUnicode(const CStdString& strFontSet);
bool GetFirstFontSetUnicode(CStdString& strFontSet);
-
+
void ReloadTTFFonts(void);
protected:
@@ -81,7 +81,7 @@
/*!
\ingroup textures
- \brief
+ \brief
*/
extern GUIFontManager g_fontManager;
#endif
Modified: branches/xbmc-smoothvideo/guilib/GUIFontTTF.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIFontTTF.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIFontTTF.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -191,7 +191,7 @@
void CGUIFontTTF::ClearCharacterCache()
{
if (m_texture)
-#ifndef HAS_SDL
+#ifndef HAS_SDL
{
m_texture->Release();
}
@@ -211,7 +211,7 @@
m_glTextureLoaded = false;
}
#endif
-
+
m_texture = NULL;
if (m_char)
delete[] m_char;
@@ -227,7 +227,7 @@
void CGUIFontTTF::Clear()
{
if (m_texture)
-#ifndef HAS_SDL
+#ifndef HAS_SDL
m_texture->Release();
#else
SDL_FreeSurface(m_texture);
@@ -290,7 +290,7 @@
m_height = height;
if (m_texture)
-#ifndef HAS_SDL
+#ifndef HAS_SDL
m_texture->Release();
#else
SDL_FreeSurface(m_texture);
@@ -354,7 +354,7 @@
if ( alignment & XBFONT_TRUNCATED && w > maxPixelWidth )
w = maxPixelWidth;
-
+
if ( alignment & XBFONT_CENTER_X)
w *= 0.5f;
// Offset this line's starting position
@@ -363,7 +363,7 @@
float spacePerLetter = 0; // for justification effects
if ( alignment & XBFONT_JUSTIFIED )
- {
+ {
// first compute the size of the text to render in both characters and pixels
unsigned int lineChars = 0;
float linePixels = 0;
@@ -602,8 +602,8 @@
FT_Done_Glyph(glyph);
return false;
}
-
-#ifndef HAS_SDL
+
+#ifndef HAS_SDL
LPDIRECT3DTEXTURE8 newTexture;
if (D3D_OK != D3DXCreateTexture(m_pD3DDevice, m_textureWidth, newHeight, 1, 0, D3DFMT_LIN_A8, D3DPOOL_MANAGED, &newTexture))
{
@@ -634,13 +634,13 @@
SAFE_RELEASE(pTarget);
SAFE_RELEASE(pSource);
SAFE_RELEASE(m_texture);
- }
+ }
#else
#ifdef HAS_SDL_OPENGL
newHeight = PadPow2(newHeight);
SDL_Surface* newTexture = SDL_CreateRGBSurface(SDL_SWSURFACE, m_textureWidth, newHeight, 8,
0, 0, 0, 0xff);
-
+
#ifdef __APPLE__
// Because of an SDL bug (?), bpp gets set to 4 even though we asked for 1, in fullscreen mode.
// To be completely honest, we probably shouldn't even be using an SDL surface in OpenGL mode, since
@@ -649,7 +649,7 @@
if (newTexture->pitch != m_textureWidth)
newTexture->pitch = m_textureWidth;
#endif
-
+
#else
SDL_Surface* newTexture = SDL_CreateRGBSurface(SDL_HWSURFACE, m_textureWidth, newHeight, 32,
0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);
@@ -662,7 +662,7 @@
}
m_textureHeight = newTexture->h;
m_textureWidth = newTexture->w;
-
+
if (m_texture)
{
unsigned char* src = (unsigned char*) m_texture->pixels;
@@ -694,7 +694,7 @@
// we need only render if we actually have some pixels
if (bitmap.width * bitmap.rows)
{
-#ifndef HAS_SDL
+#ifndef HAS_SDL
// render this onto our normal texture using gpu
LPDIRECT3DSURFACE8 target;
m_texture->GetSurfaceLevel(0, &target);
@@ -706,8 +706,8 @@
targetrect.bottom = targetrect.top + bitmap.rows;
targetrect.right = targetrect.left + bitmap.width;
- D3DXLoadSurfaceFromMemory( target, NULL, &targetrect,
- bitmap.buffer, D3DFMT_LIN_A8, bitmap.pitch, NULL, &sourcerect,
+ D3DXLoadSurfaceFromMemory( target, NULL, &targetrect,
+ bitmap.buffer, D3DFMT_LIN_A8, bitmap.pitch, NULL, &sourcerect,
D3DX_FILTER_NONE, 0x00000000);
SAFE_RELEASE(target);
@@ -724,7 +724,7 @@
target += m_texture->pitch;
}
// THE SOURCE VALUES ARE THE SAME IN BOTH SITUATIONS.
-
+
// Since we have a new texture, we need to delete the old one
// the Begin(); End(); stuff is handled by whoever called us
if (m_glTextureLoaded)
@@ -734,25 +734,25 @@
glDeleteTextures(1, &m_glTexture);
g_graphicsContext.EndPaint();
m_glTextureLoaded = false;
- }
+ }
#else
- unsigned int *target = (unsigned int*) (m_texture->pixels) +
- ((m_posY + ch->offsetY) * m_texture->pitch/4) +
+ unsigned int *target = (unsigned int*) (m_texture->pixels) +
+ ((m_posY + ch->offsetY) * m_texture->pitch/4) +
(m_posX + bitGlyph->left);
-
+
for (int y = 0; y < bitmap.rows; y++)
{
for (int x = 0; x < bitmap.width; x++)
{
target[x] = ((unsigned int) source[x] << 24) | 0x00ffffffL;
}
-
+
source += bitmap.width;
target += (m_texture->pitch / 4);
}
#endif
SDL_UnlockSurface(m_texture);
-#endif
+#endif
}
m_posX += (unsigned short)max(ch->right - ch->left + ch->offsetX, ch->advance + 1);
m_numChars++;
@@ -800,23 +800,23 @@
{
// Have OpenGL generate a texture object handle for us
glGenTextures(1, &m_glTexture);
-
+
// Bind the texture object
glBindTexture(GL_TEXTURE_2D, m_glTexture);
glEnable(GL_TEXTURE_2D);
-
+
// Set the texture's stretching properties
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
-
+
// Set the texture image -- THIS WORKS, so the pixels must be wrong.
glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, m_texture->w, m_texture->h, 0,
- GL_ALPHA, GL_UNSIGNED_BYTE, m_texture->pixels);
-
+ GL_ALPHA, GL_UNSIGNED_BYTE, m_texture->pixels);
+
VerifyGLState();
- m_glTextureLoaded = true;
+ m_glTextureLoaded = true;
}
-
+
// Turn Blending On
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
@@ -853,7 +853,7 @@
m_pD3DDevice->SetTexture(0, NULL);
m_pD3DDevice->SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_MODULATE );
#elif defined(HAS_SDL_OPENGL)
- glEnd();
+ glEnd();
#endif
}
@@ -899,10 +899,10 @@
float y2 = ROUND_TO_PIXEL(g_graphicsContext.ScaleFinalYCoord(vertex.x2, vertex.y1));
float z2 = ROUND_TO_PIXEL(g_graphicsContext.ScaleFinalZCoord(vertex.x2, vertex.y1));
-
+
float y3 = ROUND_TO_PIXEL(g_graphicsContext.ScaleFinalYCoord(vertex.x2, vertex.y2));
float z3 = ROUND_TO_PIXEL(g_graphicsContext.ScaleFinalZCoord(vertex.x2, vertex.y2));
-
+
float y4 = ROUND_TO_PIXEL(g_graphicsContext.ScaleFinalYCoord(vertex.x1, vertex.y2));
float z4 = ROUND_TO_PIXEL(g_graphicsContext.ScaleFinalZCoord(vertex.x1, vertex.y2));
#endif
@@ -930,18 +930,18 @@
m_pD3DDevice->DrawPrimitiveUP(D3DPT_TRIANGLEFAN, 2, verts, sizeof(CUSTOMVERTEX));
#elif defined(HAS_SDL_2D)
- // Copy the character to a temporary surface so we can adjust its colors
+ // Copy the character to a temporary surface so we can adjust its colors
SDL_Surface* tempSurface = SDL_CreateRGBSurface(SDL_HWSURFACE|SDL_SRCALPHA, (int) width, (int) height, 32,
0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);
SDL_LockSurface(tempSurface);
SDL_LockSurface(m_texture);
-
+
unsigned int* src = (unsigned int*) m_texture->pixels + ((int) ch->top * m_texture->w) + ((int) ch->left);
unsigned int* dst = (unsigned int*) tempSurface->pixels;
-
+
// Calculate the alpha per pixel based on the alpha channel of the pixel and the alpha channel of
- // the requested color
+ // the requested color
int alpha;
float alphaFactor = (float) ((dwColor & 0xff000000) >> 24) / 255;
for (int y = 0; y < tempSurface->h; y++)
@@ -951,19 +951,19 @@
alpha = (int) (alphaFactor * (((unsigned int) src[x] & 0xff000000) >> 24));
dst[x] = (alpha << 24) | (dwColor & 0x00ffffff);
}
-
+
src += (m_texture->pitch / 4);
dst += tempSurface->w;
}
-
+
SDL_UnlockSurface(tempSurface);
SDL_UnlockSurface(m_texture);
- // Copy the surface to the screen (without angle).
+ // Copy the surface to the screen (without angle).
SDL_Rect dstRect2 = { (Sint16) x[0], (Sint16) y1, 0 , 0 };
g_graphicsContext.BlitToScreen(tempSurface, NULL, &dstRect2);
-
- SDL_FreeSurface(tempSurface);
+
+ SDL_FreeSurface(tempSurface);
#elif defined(HAS_SDL_OPENGL)
// tex coords converted to 0..1 range
float tl = texture.x1 / m_textureWidth;
@@ -974,22 +974,22 @@
GLubyte colors[4] = { (GLubyte)((dwColor >> 16) & 0xff), (GLubyte)((dwColor >> 8) & 0xff), (GLubyte)(dwColor & 0xff), (GLubyte)(dwColor >> 24) };
// Top-left vertex (corner)
- glColor4ubv(colors);
+ glColor4ubv(colors);
glTexCoord2f(tl, tt);
glVertex3f(x[0], y1, z1);
-
+
// Bottom-left vertex (corner)
- glColor4ubv(colors);
+ glColor4ubv(colors);
glTexCoord2f(tr, tt);
glVertex3f(x[1], y2, z2);
-
+
// Bottom-right vertex (corner)
- glColor4ubv(colors);
+ glColor4ubv(colors);
glTexCoord2f(tr, tb);
glVertex3f(x[2], y3, z3);
-
+
// Top-right vertex (corner)
- glColor4ubv(colors);
+ glColor4ubv(colors);
glTexCoord2f(tl, tb);
glVertex3f(x[3], y4, z4);
Modified: branches/xbmc-smoothvideo/guilib/GUIFontTTF.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIFontTTF.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIFontTTF.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIFont.h
-\brief
+\brief
*/
#ifndef CGUILIB_GUIFONTTTF_H
@@ -40,7 +40,7 @@
/*!
\ingroup textures
- \brief
+ \brief
*/
class CGUIFontTTF
{
@@ -66,7 +66,7 @@
const CStdString& GetFileName() const { return m_strFileName; };
void CopyReferenceCountFrom(CGUIFontTTF& ttf) { m_referenceCount = ttf.m_referenceCount; }
-
+
protected:
void AddReference();
void RemoveReference();
@@ -95,7 +95,7 @@
bool CacheCharacter(WCHAR letter, DWORD style, Character *ch);
inline void RenderCharacter(float posX, float posY, const Character *ch, D3DCOLOR dwColor, bool roundX);
void ClearCharacterCache();
-
+
// modifying glyphs
void EmboldenGlyph(FT_GlyphSlot slot);
void ObliqueGlyph(FT_GlyphSlot slot);
@@ -104,7 +104,7 @@
LPDIRECT3DDEVICE8 m_pD3DDevice;
LPDIRECT3DTEXTURE8 m_texture; // texture that holds our rendered characters (8bit alpha only)
#else
- SDL_Surface* m_texture;
+ SDL_Surface* m_texture;
#endif
unsigned int m_textureWidth; // width of our texture
unsigned int m_textureHeight; // heigth of our texture
Modified: branches/xbmc-smoothvideo/guilib/GUIImage.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIImage.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIImage.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -33,6 +33,7 @@
m_currentFadeTime = 0;
m_lastRenderTime = 0;
ControlType = GUICONTROL_IMAGE;
+ m_bDynamicResourceAlloc=false;
}
CGUIImage::CGUIImage(const CGUIImage &left)
@@ -224,6 +225,7 @@
void CGUIImage::DynamicResourceAlloc(bool bOnOff)
{
+ m_bDynamicResourceAlloc = bOnOff;
m_texture.DynamicResourceAlloc(bOnOff);
CGUIControl::DynamicResourceAlloc(bOnOff);
}
@@ -270,7 +272,7 @@
// set filename on the next texture
if (m_texture.GetFileName().Equals(strFileName))
return; // nothing to do - we already have this image
-
+
if (m_texture.ReadyToRender() || m_texture.GetFileName().IsEmpty())
{ // save the current image
m_fadingTextures.push_back(new CFadingTexture(m_texture, m_currentFadeTime));
Modified: branches/xbmc-smoothvideo/guilib/GUIImage.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIImage.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIImage.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file guiImage.h
-\brief
+\brief
*/
#ifndef GUILIB_GUIIMAGECONTROL_H
@@ -35,7 +35,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIImage : public CGUIControl
Modified: branches/xbmc-smoothvideo/guilib/GUIIncludes.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIIncludes.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIIncludes.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -152,7 +152,7 @@
const char *condition = include->Attribute("condition");
if (condition)
{ // check this condition
- if (!g_infoManager.GetBool(g_infoManager.TranslateString(condition)))
+ if (!g_infoManager.GetBool(g_infoManager.TranslateString(condition)))
{
include = include->NextSiblingElement("include");
continue;
Modified: branches/xbmc-smoothvideo/guilib/GUIInfoColor.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIInfoColor.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIInfoColor.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIInfoColor.h
-\brief
+\brief
*/
#ifndef GUILIB_GUIINFOCOLOR_H
Modified: branches/xbmc-smoothvideo/guilib/GUILabelControl.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUILabelControl.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUILabelControl.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -194,7 +194,7 @@
: CGUIControl(dwParentID, dwControlId, posX, posY, width, height), m_textLayout(labelInfo.font, wrapMultiLine)
{
m_bHasPath = bHasPath;
- m_iCursorPos = 0;
+ m_iCursorPos = 0;
m_label = labelInfo;
m_bShowCursor = false;
m_dwCounter = 0;
@@ -238,7 +238,7 @@
if (m_bShowCursor)
{ // cursor location assumes utf16 text, so deal with that (inefficient, but it's not as if it's a high-use area
// virtual keyboard only)
- CStdStringW utf16;
+ CStdStringW utf16;
g_charsetConverter.utf8ToW(label, utf16);
CStdStringW col;
if ((++m_dwCounter % 50) > 25)
Modified: branches/xbmc-smoothvideo/guilib/GUILabelControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUILabelControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUILabelControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUILabelControl.h
-\brief
+\brief
*/
#ifndef GUILIB_GUILABELCONTROL_H
@@ -65,7 +65,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUILabelControl :
public CGUIControl
Modified: branches/xbmc-smoothvideo/guilib/GUIListContainer.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIListContainer.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIListContainer.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -326,7 +326,7 @@
const CLabelInfo& labelInfo, const CLabelInfo& labelInfo2,
const CTextureInfo& textureButton, const CTextureInfo& textureButtonFocus,
float textureHeight, float itemWidth, float itemHeight, float spaceBetweenItems, CGUIControl *pSpin)
-: CGUIBaseContainer(dwParentID, dwControlId, posX, posY, width, height, VERTICAL, 200)
+: CGUIBaseContainer(dwParentID, dwControlId, posX, posY, width, height, VERTICAL, 200)
{
CGUIListItemLayout layout;
layout.CreateListControlLayouts(width, textureHeight + spaceBetweenItems, false, labelInfo, labelInfo2, textureButton, textureButtonFocus, textureHeight, itemWidth, itemHeight, 0, 0);
Modified: branches/xbmc-smoothvideo/guilib/GUIListContainer.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIListContainer.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIListContainer.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIListContainer.h
-\brief
+\brief
*/
#pragma once
@@ -30,7 +30,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIListContainer : public CGUIBaseContainer
{
@@ -49,10 +49,10 @@
virtual void Render();
virtual bool OnAction(const CAction &action);
virtual bool OnMessage(CGUIMessage& message);
-
+
virtual bool HasNextPage() const;
virtual bool HasPreviousPage() const;
-
+
protected:
virtual void Scroll(int amount);
void SetCursor(int cursor);
Modified: branches/xbmc-smoothvideo/guilib/GUIListGroup.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIListGroup.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIListGroup.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIListGroup.h
-\brief
+\brief
*/
#pragma once
Modified: branches/xbmc-smoothvideo/guilib/GUIListItem.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIListItem.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIListItem.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIListItem.h
-\brief
+\brief
*/
#ifndef GUILIB_GUILISTITEM_H
@@ -40,7 +40,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIListItem
{
Modified: branches/xbmc-smoothvideo/guilib/GUIListLabel.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIListLabel.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIListLabel.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIListLabel.h
-\brief
+\brief
*/
#pragma once
@@ -31,7 +31,7 @@
#include "GUILabelControl.h" // for CLabelInfo
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIListLabel :
public CGUIControl
Modified: branches/xbmc-smoothvideo/guilib/GUIMessage.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIMessage.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIMessage.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIMessage.h
-\brief
+\brief
*/
#ifndef GUILIB_MESSAGE_H
@@ -89,7 +89,7 @@
/*!
\ingroup winmsg
- \brief
+ \brief
*/
#define CONTROL_SELECT(dwControlID) \
do { \
@@ -99,7 +99,7 @@
/*!
\ingroup winmsg
- \brief
+ \brief
*/
#define CONTROL_DESELECT(dwControlID) \
do { \
@@ -110,7 +110,7 @@
/*!
\ingroup winmsg
- \brief
+ \brief
*/
#define CONTROL_ENABLE(dwControlID) \
do { \
@@ -120,7 +120,7 @@
/*!
\ingroup winmsg
- \brief
+ \brief
*/
#define CONTROL_DISABLE(dwControlID) \
do { \
@@ -131,7 +131,7 @@
/*!
\ingroup winmsg
- \brief
+ \brief
*/
#define CONTROL_ENABLE_ON_CONDITION(dwControlID, bCondition) \
do { \
@@ -142,7 +142,7 @@
/*!
\ingroup winmsg
- \brief
+ \brief
*/
#define CONTROL_SELECT_ITEM(dwControlID,iItem) \
do { \
@@ -174,7 +174,7 @@
/*!
\ingroup winmsg
- \brief
+ \brief
*/
#define SET_CONTROL_HIDDEN(dwControlID) \
do { \
@@ -184,7 +184,7 @@
/*!
\ingroup winmsg
- \brief
+ \brief
*/
#define SET_CONTROL_FOCUS(dwControlID, dwParam) \
do { \
@@ -194,7 +194,7 @@
/*!
\ingroup winmsg
- \brief
+ \brief
*/
#define SET_CONTROL_VISIBLE(dwControlID) \
do { \
@@ -232,7 +232,7 @@
/*!
\ingroup winmsg
- \brief
+ \brief
*/
class CGUIMessage
{
Modified: branches/xbmc-smoothvideo/guilib/GUIMoverControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIMoverControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIMoverControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIMoverControl.h
-\brief
+\brief
*/
#ifndef GUILIB_GUIMoverCONTROL_H
@@ -48,7 +48,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIMoverControl : public CGUIControl
{
Modified: branches/xbmc-smoothvideo/guilib/GUIMultiImage.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIMultiImage.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIMultiImage.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -56,6 +56,7 @@
m_randomized = from.m_randomized;
m_loop = from.m_loop;
m_aspect = from.m_aspect;
+ m_bDynamicResourceAlloc=false;
m_directoryLoaded = false;
if (m_texturePath.IsConstant())
m_currentPath = m_texturePath.GetLabel(WINDOW_INVALID);
@@ -340,4 +341,4 @@
m_texturePath = info;
if (m_texturePath.IsConstant())
m_currentPath = m_texturePath.GetLabel(WINDOW_INVALID);
-}
\ No newline at end of file
+}
Modified: branches/xbmc-smoothvideo/guilib/GUIMultiImage.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIMultiImage.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIMultiImage.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIMultiImage.h
-\brief
+\brief
*/
#ifndef GUILIB_GUIMULTIIMAGECONTROL_H
@@ -34,7 +34,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIMultiImage : public CGUIControl
{
Modified: branches/xbmc-smoothvideo/guilib/GUIMultiSelectText.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIMultiSelectText.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIMultiSelectText.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -26,7 +26,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIMultiSelectTextControl : public CGUIControl
{
Modified: branches/xbmc-smoothvideo/guilib/GUIPanelContainer.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIPanelContainer.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIPanelContainer.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -419,7 +419,7 @@
float thumbPosX, float thumbPosY, float thumbWidth, float thumbHeight, DWORD thumbAlign, const CAspectRatio &thumbAspect,
const CLabelInfo& labelInfo, bool hideLabels,
CGUIControl *pSpin, CGUIControl *pPanel)
-: CGUIBaseContainer(dwParentID, dwControlId, posX, posY, width, height, VERTICAL, 200)
+: CGUIBaseContainer(dwParentID, dwControlId, posX, posY, width, height, VERTICAL, 200)
{
CGUIListItemLayout layout;
layout.CreateThumbnailPanelLayouts(itemWidth, itemHeight, false, imageNoFocus, textureWidth, textureHeight, thumbPosX, thumbPosY, thumbWidth, thumbHeight, thumbAlign, thumbAspect, labelInfo, hideLabels);
Modified: branches/xbmc-smoothvideo/guilib/GUIPanelContainer.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIPanelContainer.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIPanelContainer.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIPanelContainer.h
-\brief
+\brief
*/
#pragma once
@@ -30,7 +30,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIPanelContainer : public CGUIBaseContainer
{
Modified: branches/xbmc-smoothvideo/guilib/GUIProgressControl.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIProgressControl.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIProgressControl.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -23,12 +23,12 @@
#include "GUIProgressControl.h"
#include "utils/GUIInfoManager.h"
-CGUIProgressControl::CGUIProgressControl(DWORD dwParentID, DWORD dwControlId,
- float posX, float posY, float width,
- float height, const CTextureInfo& backGroundTexture,
- const CTextureInfo& leftTexture,
- const CTextureInfo& midTexture,
- const CTextureInfo& rightTexture,
+CGUIProgressControl::CGUIProgressControl(DWORD dwParentID, DWORD dwControlId,
+ float posX, float posY, float width,
+ float height, const CTextureInfo& backGroundTexture,
+ const CTextureInfo& leftTexture,
+ const CTextureInfo& midTexture,
+ const CTextureInfo& rightTexture,
const CTextureInfo& overlayTexture, float min, float max,
bool reveal)
: CGUIControl(dwParentID, dwControlId, posX, posY, width, height)
@@ -68,7 +68,7 @@
{
if (m_fPercent > m_RangeMax)
m_fPercent = m_RangeMax;
- if (m_fPercent < m_RangeMin)
+ if (m_fPercent < m_RangeMin)
m_fPercent = m_RangeMin;
m_fPercent = ((100*(m_fPercent - m_RangeMin)) / (m_RangeMax - m_RangeMin));
}
Modified: branches/xbmc-smoothvideo/guilib/GUIProgressControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIProgressControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIProgressControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIProgressControl.h
-\brief
+\brief
*/
#ifndef GUILIB_GUIPROGRESSCONTROL_H
@@ -34,16 +34,16 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIProgressControl :
public CGUIControl
{
public:
- CGUIProgressControl(DWORD dwParentID, DWORD dwControlId, float posX, float posY,
- float width, float height, const CTextureInfo& backGroundTexture,
- const CTextureInfo& leftTexture, const CTextureInfo& midTexture,
- const CTextureInfo& rightTexture, const CTextureInfo& overlayTexture,
+ CGUIProgressControl(DWORD dwParentID, DWORD dwControlId, float posX, float posY,
+ float width, float height, const CTextureInfo& backGroundTexture,
+ const CTextureInfo& leftTexture, const CTextureInfo& midTexture,
+ const CTextureInfo& rightTexture, const CTextureInfo& overlayTexture,
float min, float max, bool reveal=false);
virtual ~CGUIProgressControl(void);
virtual CGUIProgressControl *Clone() const { return new CGUIProgressControl(*this); };
Modified: branches/xbmc-smoothvideo/guilib/GUIRSSControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIRSSControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIRSSControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIRSSControl.h
-\brief
+\brief
*/
#ifndef GUILIB_GUIRSSControl_H
@@ -34,7 +34,7 @@
/*!
\ingroup controls
-\brief
+\brief
*/
class CGUIRSSControl : public CGUIControl, public IRssObserver
{
Modified: branches/xbmc-smoothvideo/guilib/GUIRadioButtonControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIRadioButtonControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIRadioButtonControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIRadioButtonControl.h
-\brief
+\brief
*/
#pragma once
@@ -30,7 +30,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIRadioButtonControl :
public CGUIButtonControl
Modified: branches/xbmc-smoothvideo/guilib/GUIResizeControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIResizeControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIResizeControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIRESIZEControl.h
-\brief
+\brief
*/
#ifndef GUILIB_GUIRESIZECONTROL_H
@@ -40,7 +40,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIResizeControl : public CGUIControl
{
Modified: branches/xbmc-smoothvideo/guilib/GUIScrollBarControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIScrollBarControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIScrollBarControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIScrollBar.h
-\brief
+\brief
*/
#ifndef GUILIB_GUISCROLLBAR_H
@@ -34,7 +34,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIScrollBar :
public CGUIControl
Modified: branches/xbmc-smoothvideo/guilib/GUISelectButtonControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUISelectButtonControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUISelectButtonControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUISelectButtonControl.h
-\brief
+\brief
*/
#ifndef GUILIB_GUIWINDOWSELECTCONTROL_H
@@ -34,13 +34,13 @@
/*!
\ingroup controls
\brief Button with multi selection choice.
-
+
Behaves like a normal button control, but when pressing,
it can show multiple strings. The user can choose one by
moving left or right. \n
\n
Messages the button reactes on: \n
-
+
- GUI_MSG_LABEL_ADD \n
Add a label to the control. Use CGUIMessage::SetLabel
to set the label text.
@@ -49,7 +49,7 @@
- GUI_MSG_ITEM_SELECTED \n
After sending this message the CGUIMessage::GetParam1
contains the selected label as an integer.
- \note The order of the items depends on the order they have been added to
+ \note The order of the items depends on the order they have been added to
the control using GUI_MSG_LABEL_ADD.
- GUI_MSG_ITEM_SELECT \n
Send this message with CGUIMessage::SetParam1() set to the label
@@ -82,7 +82,7 @@
<ondown>7</ondown>
</control>
\endverbatim
-
+
\sa CGUIMessage
*/
class CGUISelectButtonControl : public CGUIButtonControl
Modified: branches/xbmc-smoothvideo/guilib/GUISettingsSliderControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUISettingsSliderControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUISettingsSliderControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUISliderControl.h
-\brief
+\brief
*/
#ifndef GUILIB_GUISettingsSliderCONTROL_H
@@ -38,7 +38,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUISettingsSliderControl :
public CGUISliderControl
Modified: branches/xbmc-smoothvideo/guilib/GUISliderControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUISliderControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUISliderControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUISliderControl.h
-\brief
+\brief
*/
#ifndef GUILIB_GUISLIDERCONTROL_H
@@ -39,7 +39,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUISliderControl :
public CGUIControl
Modified: branches/xbmc-smoothvideo/guilib/GUISound.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUISound.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUISound.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -43,7 +43,7 @@
char rifftype[4];
} WAVE_RIFFHEADER;
#else
-#define GUI_SOUND_CHANNEL 0
+#define GUI_SOUND_CHANNEL 0
#endif
CGUISound::CGUISound()
@@ -82,8 +82,8 @@
m_soundBuffer = Mix_LoadWAV(_P(strFile));
if (!m_soundBuffer)
return false;
-
- return true;
+
+ return true;
#endif
}
@@ -94,7 +94,7 @@
#if !defined(HAS_SDL_AUDIO)
m_soundBuffer->Play(0, 0, 0);
#else
- Mix_PlayChannel(GUI_SOUND_CHANNEL, m_soundBuffer, 0);
+ Mix_PlayChannel(GUI_SOUND_CHANNEL, m_soundBuffer, 0);
#endif
}
@@ -123,7 +123,7 @@
#if !defined(HAS_SDL_AUDIO)
m_soundBuffer->Stop();
#else
- Mix_HaltChannel(GUI_SOUND_CHANNEL);
+ Mix_HaltChannel(GUI_SOUND_CHANNEL);
#endif
while(IsPlaying()) {}
@@ -138,19 +138,19 @@
m_soundBuffer->SetVolume(level);
#else
Mix_Volume(GUI_SOUND_CHANNEL, level);
-#endif
+#endif
}
#ifndef HAS_SDL_AUDIO
bool CGUISound::CreateBuffer(LPWAVEFORMATEX wfx, int iLength)
{
// Set up DSBUFFERDESC structure
- DSBUFFERDESC dsbdesc;
- memset(&dsbdesc, 0, sizeof(DSBUFFERDESC));
+ DSBUFFERDESC dsbdesc;
+ memset(&dsbdesc, 0, sizeof(DSBUFFERDESC));
dsbdesc.dwSize=sizeof(DSBUFFERDESC);
// directsound requires ctrlvolume to be set
dsbdesc.dwFlags = DSBCAPS_CTRLVOLUME;
- dsbdesc.dwBufferBytes=iLength;
+ dsbdesc.dwBufferBytes=iLength;
dsbdesc.lpwfxFormat=wfx;
LPDIRECTSOUND directSound=g_audioContext.GetDirectSoundDevice();
@@ -168,7 +168,7 @@
// Make effects as loud as possible
m_soundBuffer->SetVolume(g_stSettings.m_nVolumeLevel);
- return true;
+ return true;
}
bool CGUISound::FillBuffer(LPBYTE pbData, int iLength)
Modified: branches/xbmc-smoothvideo/guilib/GUISound.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUISound.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUISound.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -46,6 +46,6 @@
LPDIRECTSOUNDBUFFER m_soundBuffer;
#else
- Mix_Chunk* m_soundBuffer;
+ Mix_Chunk* m_soundBuffer;
#endif
};
Modified: branches/xbmc-smoothvideo/guilib/GUISpinControl.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUISpinControl.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUISpinControl.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -439,7 +439,7 @@
m_textLayout.Render(fPosX, fPosY, 0, m_label.focusedColor, m_label.shadowColor, m_label.align, 0);
else
m_textLayout.Render(fPosX, fPosY, 0, m_label.textColor, m_label.shadowColor, m_label.align, 0);
-
+
// set our hit rectangle for MouseOver events
if (!(m_label.align & (XBFONT_RIGHT | XBFONT_CENTER_X)))
m_hitRect.SetRect(fPosX, fPosY, fPosX + fTextWidth, fPosY + fTextHeight);
@@ -476,7 +476,7 @@
}
void CGUISpinControl::SetValue(int iValue)
-{
+{
if (m_iType == SPIN_CONTROL_TYPE_TEXT)
{
m_iValue = 0;
Modified: branches/xbmc-smoothvideo/guilib/GUISpinControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUISpinControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUISpinControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUISpinControl.h
-\brief
+\brief
*/
#ifndef GUILIB_SPINCONTROL_H
@@ -40,7 +40,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUISpinControl : public CGUIControl
{
Modified: branches/xbmc-smoothvideo/guilib/GUISpinControlEx.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUISpinControlEx.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUISpinControlEx.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -18,7 +18,7 @@
* http://www.gnu.org/copyleft/gpl.html
*
*/
-
+
#include "include.h"
#include "GUISpinControlEx.h"
Modified: branches/xbmc-smoothvideo/guilib/GUISpinControlEx.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUISpinControlEx.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUISpinControlEx.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUISpinControlEx.h
-\brief
+\brief
*/
#ifndef GUILIB_SPINCONTROLEX_H
@@ -34,7 +34,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUISpinControlEx : public CGUISpinControl
{
Modified: branches/xbmc-smoothvideo/guilib/GUITextBox.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUITextBox.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUITextBox.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUITextBox.h
-\brief
+\brief
*/
#ifndef GUILIB_GUITEXTBOX_H
@@ -34,7 +34,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class TiXmlNode;
Modified: branches/xbmc-smoothvideo/guilib/GUITextureSDL.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUITextureSDL.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUITextureSDL.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -23,6 +23,8 @@
#include "GUITextureSDL.h"
#include "GraphicContext.h"
+using namespace std;
+
#ifdef HAS_SDL_2D
CGUITextureSDL::CGUITextureSDL(float posX, float posY, float width, float height, const CTextureInfo &texture)
@@ -40,16 +42,19 @@
void CGUITextureSDL::Free()
{
// free our cached textures
- if (m_cachedTextures[i].surface)
- SDL_FreeSurface(m_cachedTextures[i].surface);
+ for( unsigned int i=0;i<m_cachedTextures.size();++i )
+ {
+ if (m_cachedTextures[i].surface)
+ SDL_FreeSurface(m_cachedTextures[i].surface);
+ }
m_cachedTextures.clear();
}
void CGUITextureSDL::Draw(float *x, float *y, float *z, const CRect &texture, const CRect &diffuse, DWORD color, int orientation)
{
SDL_Surface* surface = m_texture.m_textures[m_currentFrame];
- float u[2] = { u1, u2 };
- float v[2] = { v1, v2 };
+ float u[2] = { texture.x1, texture.x2 };
+ float v[2] = { texture.y1, texture.y2 };
// cache texture based on:
// 1. Bounding box
@@ -59,7 +64,7 @@
CCachedTexture &cached = m_cachedTextures[m_currentFrame];
if (!cached.surface || cached.width != b[2] || cached.height != b[3] || color != cached.diffuseColor)
{ // need to re-render the surface
- RenderWithEffects(surface, x, y, u, v, color, m_diffuse.size() ? m_diffuse.m_textures[0] : NULL, m_diffuseScaleU, m_diffuseScaleV, cached);
+ RenderWithEffects(surface, x, y, u, v, &color, m_diffuse.size() ? m_diffuse.m_textures[0] : NULL, m_diffuseScaleU, m_diffuseScaleV, cached);
}
if (cached.surface)
{
@@ -201,4 +206,4 @@
SDL_UnlockSurface(diffuse);
}
-#endif
\ No newline at end of file
+#endif
Modified: branches/xbmc-smoothvideo/guilib/GUITextureSDL.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUITextureSDL.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUITextureSDL.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -52,6 +52,8 @@
CGUITextureSDL(float posX, float posY, float width, float height, const CTextureInfo& texture);
protected:
void Draw(float *x, float *y, float *z, const CRect &texture, const CRect &diffuse, DWORD color, int orientation);
+ virtual void Allocate();
+ virtual void Free();
void CalcBoundingBox(float *x, float *y, int n, int *b);
void GetTexel(float u, float v, SDL_Surface *src, BYTE *texel);
Modified: branches/xbmc-smoothvideo/guilib/GUIToggleButtonControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIToggleButtonControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIToggleButtonControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIToggleButtonControl.h
-\brief
+\brief
*/
#ifndef GUILIB_GUITOGGLEBUTTONCONTROL_H
@@ -33,7 +33,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIToggleButtonControl : public CGUIButtonControl
{
Modified: branches/xbmc-smoothvideo/guilib/GUIVideoControl.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIVideoControl.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIVideoControl.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIVideoControl.h
-\brief
+\brief
*/
#ifndef GUILIB_GUIVIDEOCONTROL_H
@@ -33,7 +33,7 @@
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIVideoControl :
public CGUIControl
Modified: branches/xbmc-smoothvideo/guilib/GUIVisualisationControl.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIVisualisationControl.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIVisualisationControl.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -40,7 +40,7 @@
void CAudioBuffer::Set(const unsigned char* psBuffer, int iSize, int iBitsPerSample)
{
- if (iSize<0)
+ if (iSize<0)
{
return;
}
@@ -117,7 +117,7 @@
OutputDebugString("delete Visualisation()\n");
delete m_pVisualisation;
-
+
/* we released the global vis spot */
m_globalvis = false;
}
@@ -136,7 +136,7 @@
/* check if any other control beat us to the punch */
if(m_globalvis)
- return;
+ return;
CVisualisationFactory factory;
CStdString strVisz, strModule;
@@ -379,12 +379,12 @@
// inform the visulisation of the current album art
if ( m_pVisualisation->OnAction( CVisualisation::VIS_ACTION_UPDATE_ALBUMART,
- (void*)( m_AlbumThumb.c_str() ) ) )
+ (void*)( m_AlbumThumb.c_str() ) ) )
handled = true;
// inform the visualisation of the current track's tag information
if ( tag && m_pVisualisation->OnAction( CVisualisation::VIS_ACTION_UPDATE_TRACK,
- (void*)tag ) )
+ (void*)tag ) )
handled = true;
}
return handled;
Modified: branches/xbmc-smoothvideo/guilib/GUIWindow.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIWindow.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIWindow.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -150,7 +150,7 @@
if (m_windowLoaded)
return true; // no point loading if it's already there
-
+
LARGE_INTEGER start;
QueryPerformanceCounter(&start);
@@ -162,7 +162,7 @@
CStdString strLowerPath;
if (bContainsPath)
strPath = strFileName;
- else
+ else
{
// FIXME: strLowerPath needs to eventually go since resToUse can get incorrectly overridden
strLowerPath = g_SkinInfo.GetSkinPath(CStdString(strFileName).ToLower(), &resToUse);
@@ -198,7 +198,7 @@
m_dwWindowId = WINDOW_INVALID;
return false;
}
-
+
return Load(xmlDoc);
}
@@ -409,7 +409,7 @@
}
}
-void CGUIWindow::OnWindowLoaded()
+void CGUIWindow::OnWindowLoaded()
{
DynamicResourceAlloc(true);
#ifdef PRE_SKIN_VERSION_2_1_COMPATIBILITY
@@ -863,9 +863,9 @@
QueryPerformanceCounter(&start);
// load skin xml file
- bool bHasPath=false;
- if (m_xmlFile.Find("\\") > -1 || m_xmlFile.Find("/") > -1 )
- bHasPath = true;
+ bool bHasPath=false;
+ if (m_xmlFile.Find("\\") > -1 || m_xmlFile.Find("/") > -1 )
+ bHasPath = true;
if (m_xmlFile.size() && (forceLoad || m_loadOnDemand || !m_windowLoaded))
Load(m_xmlFile,bHasPath);
@@ -878,7 +878,7 @@
for (i = m_vecControls.begin();i != m_vecControls.end(); ++i)
{
CGUIControl* pControl = *i;
- if (!pControl->IsDynamicallyAllocated())
+ if (!pControl->IsDynamicallyAllocated())
pControl->PreAllocResources();
}
g_TextureManager.EndPreLoad();
@@ -889,7 +889,7 @@
for (i = m_vecControls.begin();i != m_vecControls.end(); ++i)
{
CGUIControl* pControl = *i;
- if (!pControl->IsDynamicallyAllocated())
+ if (!pControl->IsDynamicallyAllocated())
pControl->AllocResources();
}
g_TextureManager.FlushPreLoad();
@@ -990,7 +990,7 @@
const CGUIControl *control = group->GetControl(iControl);
if (control) pControl = control;
}
- if ((int) pControl->GetID() == iControl)
+ if ((int) pControl->GetID() == iControl)
{
if (pControl->IsVisible())
return pControl;
@@ -1101,7 +1101,7 @@
bool CGUIWindow::IsAnimating(ANIMATION_TYPE animType)
{
if (!m_animationsEnabled) return false;
-
+
for (unsigned int i = 0; i < m_animations.size(); i++)
{
CAnimation &anim = m_animations[i];
Modified: branches/xbmc-smoothvideo/guilib/GUIWindow.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIWindow.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIWindow.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIWindow.h
-\brief
+\brief
*/
#ifndef GUILIB_GUIWINDOW_H
@@ -72,7 +72,7 @@
/*!
\ingroup winmsg
- \brief
+ \brief
*/
class CGUIWindow
{
@@ -84,7 +84,7 @@
bool Initialize(); // loads the window
bool Load(const CStdString& strFileName, bool bContainsPath = false);
-
+
virtual void SetPosition(float posX, float posY);
void CenterWindow();
virtual void Render();
Modified: branches/xbmc-smoothvideo/guilib/GUIWindowManager.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIWindowManager.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIWindowManager.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -690,7 +690,7 @@
// first remove the message from the queue,
// else the message could be processed more then once
it = messages.erase(it);
-
+
//Leave critical section here since this can cause some thread to come back here into dispatch
if(dwWindow)
SendMessage( *pMsg, dwWindow );
@@ -823,7 +823,7 @@
{ // didn't find window in history - add it to the stack
m_windowHistory.push(newWindowID);
}
-}
+}
void CGUIWindowManager::GetActiveModelessWindows(vector<DWORD> &ids)
{
Modified: branches/xbmc-smoothvideo/guilib/GUIWindowManager.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIWindowManager.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIWindowManager.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIWindowManager.h
-\brief
+\brief
*/
#ifndef GUILIB_CGUIWindowManager_H
@@ -40,7 +40,7 @@
/*!
\ingroup winman
- \brief
+ \brief
*/
class CGUIWindowManager: public IMsgSenderCallback
{
@@ -133,7 +133,7 @@
/*!
\ingroup winman
- \brief
+ \brief
*/
extern CGUIWindowManager m_gWindowManager;
#endif
Modified: branches/xbmc-smoothvideo/guilib/GUIWrappingListContainer.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GUIWrappingListContainer.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GUIWrappingListContainer.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file GUIListContainer.h
-\brief
+\brief
*/
#pragma once
@@ -29,7 +29,7 @@
#include "GUIBaseContainer.h"
/*!
\ingroup controls
- \brief
+ \brief
*/
class CGUIWrappingListContainer : public CGUIBaseContainer
{
Modified: branches/xbmc-smoothvideo/guilib/Geometry.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/Geometry.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/Geometry.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -110,7 +110,7 @@
};
const CRect &Intersect(const CRect &rect)
- {
+ {
if (rect.x2 < x2) x2 = rect.x2;
if (rect.y2 < y2) y2 = rect.y2;
if (rect.x1 > x1) x1 = rect.x1;
Modified: branches/xbmc-smoothvideo/guilib/GraphicContext.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/GraphicContext.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GraphicContext.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -225,9 +225,9 @@
GLVALIDATE;
GLint newviewport[4];
GLint* oldviewport = new GLint[4];
- glGetIntegerv(GL_SCISSOR_BOX, oldviewport);
+ glGetIntegerv(GL_SCISSOR_BOX, oldviewport);
#endif
-
+
// transform coordinates - we may have a rotation which changes the positioning of the
// minimal and maximal viewport extents. We currently go to the maximal extent.
float x[4], y[4];
@@ -256,7 +256,7 @@
if (intersectPrevious)
{
// do the intersection
-#ifndef HAS_SDL
+#ifndef HAS_SDL
int oldLeft = (int)oldviewport->X;
int oldTop = (int)oldviewport->Y;
int oldRight = (int)oldviewport->X + oldviewport->Width;
@@ -271,7 +271,7 @@
int oldBottom = m_iScreenHeight - oldviewport[1]; // opengl uses bottomleft as origin
int oldTop = oldBottom - oldviewport[3];
int oldRight = (int)oldviewport[0] + oldviewport[2];
-#endif
+#endif
if (newLeft >= oldRight || newTop >= oldBottom || newRight <= oldLeft || newBottom <= oldTop)
{ // empty intersection - return false to indicate no rendering should occur
#if defined(HAS_SDL_OPENGL)
@@ -354,7 +354,7 @@
glScissor(oldviewport[0], oldviewport[1], oldviewport[2], oldviewport[3]);
glViewport(oldviewport[0], oldviewport[1], oldviewport[2], oldviewport[3]);
VerifyGLState();
-#endif
+#endif
m_viewStack.pop();
@@ -444,7 +444,7 @@
void CGraphicContext::GetAllowedResolutions(vector<RESOLUTION> &res, bool bAllowPAL60)
{
bool bCanDoWidescreen = g_videoConfig.HasWidescreen();
- res.clear();
+ res.clear();
if (g_videoConfig.HasPAL())
{
res.push_back(PAL_4x3);
@@ -490,7 +490,7 @@
CLog::Log(LOGERROR, "The screen resolution requested is not valid, resetting to a valid mode");
res = g_videoConfig.GetSafeMode();
}
-
+
if (!m_pd3dParams)
{
m_Resolution = res;
@@ -498,7 +498,7 @@
}
bool NeedReset = false;
- UINT interval = D3DPRESENT_INTERVAL_ONE;
+ UINT interval = D3DPRESENT_INTERVAL_ONE;
//if( m_bFullScreenVideo )
// interval = D3DPRESENT_INTERVAL_IMMEDIATE;
@@ -576,7 +576,7 @@
}
SetFullScreenViewWindow(res);
-
+
m_Resolution = res;
if(NeedReset)
{
@@ -585,20 +585,20 @@
g_fontManager.ReloadTTFFonts();
}
- Unlock();
+ Unlock();
}
// SDL (Linux, Apple, Windows)
#else
void CGraphicContext::SetVideoResolution(RESOLUTION &res, BOOL NeedZ, bool forceClear /* = false */)
{
- RESOLUTION lastRes = m_Resolution;
+ RESOLUTION lastRes = m_Resolution;
if (res == AUTORES)
{
res = g_videoConfig.GetBestMode();
}
-
+
if (!IsValidResolution(res))
- {
+ {
// Choose a failsafe resolution that we can actually display
CLog::Log(LOGERROR, "The screen resolution requested is not valid, resetting to a valid mode");
res = g_videoConfig.GetSafeMode();
@@ -623,7 +623,7 @@
g_xrandr.RestoreState();
#endif
}
-
+
if (res==WINDOW)
{
g_advancedSettings.m_fullScreen = false;
@@ -638,8 +638,8 @@
#if defined(__APPLE__)
// In going FullScreen, m_Resolution == DESKTOP but if using multiple displays
// the display resolution will be wrong if the windowed display is moved to
- // a display with a different resolution. So we have to resort to
- // Hack, hack, hack. The basic problem is the resolution is not linked to the
+ // a display with a different resolution. So we have to resort to
+ // Hack, hack, hack. The basic problem is the resolution is not linked to the
// display so we have to find which display we are going fs on, then search
// through the m_ResInfo resolutions to find a matching "Full Screen"
// descriptor, then use that index to setup m_Resolution as there are multiple
@@ -686,7 +686,7 @@
// Create a bare root window so that SDL Input handling works
#ifdef HAS_GLX
static SDL_Surface* rootWindow = NULL;
- if (!rootWindow)
+ if (!rootWindow)
{
#ifdef HAS_XRANDR
XOutput out;
@@ -709,8 +709,8 @@
{
SetFullScreenRoot(true);
}
- }
- else
+ }
+ else
{
if (!g_advancedSettings.m_fullScreen)
{
@@ -728,7 +728,7 @@
bool needsResize = (m_screenSurface != 0);
#if defined(_WIN32PC)
// Always resize even the first time because we need to change the attributes on the SDL window and center
- needsResize = true;
+ needsResize = true;
#endif
if (!m_screenSurface)
m_screenSurface = new CSurface(m_iScreenWidth, m_iScreenHeight, true, 0, 0, 0, g_advancedSettings.m_fullScreen);
@@ -754,7 +754,7 @@
m_screenSurface->ResizeSurface(m_iScreenWidth, m_iScreenHeight);
#endif
-#if defined(_WIN32PC)
+#if defined(_WIN32PC) && !defined(__APPLE__)
if (!g_guiSettings.GetBool("videoplayer.adjustrefreshrate"))
{
//get the display frequency
@@ -786,7 +786,7 @@
glGetError(); // reset any previous GL errors
// max out at 2^(8+8)
- for (int i = 0 ; i<8 ; i++)
+ for (int i = 0 ; i<8 ; i++)
{
glTexImage2D(GL_PROXY_TEXTURE_2D, 0, 4, width, width, 0, GL_BGRA,
GL_UNSIGNED_BYTE, NULL);
@@ -811,39 +811,39 @@
glViewport(0, 0, m_iScreenWidth, m_iScreenHeight);
glScissor(0, 0, m_iScreenWidth, m_iScreenHeight);
- glEnable(GL_TEXTURE_2D);
- glEnable(GL_SCISSOR_TEST);
+ glEnable(GL_TEXTURE_2D);
+ glEnable(GL_SCISSOR_TEST);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
-
+
glOrtho(0.0f, m_iScreenWidth-1, m_iScreenHeight-1, 0.0f, -1.0f, 1.0f);
glMatrixMode(GL_MODELVIEW);
- glLoadIdentity();
-
+ glLoadIdentity();
+
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
glEnable(GL_BLEND); // Turn Blending On
glDisable(GL_DEPTH_TEST);
VerifyGLState();
#endif
- m_bWidescreen = (res == HDTV_1080i || res == HDTV_720p || res == PAL60_16x9 ||
+ m_bWidescreen = (res == HDTV_1080i || res == HDTV_720p || res == PAL60_16x9 ||
res == PAL_16x9 || res == NTSC_16x9);
-
+
// set the mouse resolution
if ((lastRes == -1) || (g_settings.m_ResInfo[lastRes].iWidth != g_settings.m_ResInfo[res].iWidth) || (g_settings.m_ResInfo[lastRes].iHeight != g_settings.m_ResInfo[res].iHeight))
{
g_Mouse.SetResolution(g_settings.m_ResInfo[res].iWidth, g_settings.m_ResInfo[res].iHeight, 1, 1);
g_fontManager.ReloadTTFFonts();
}
-
+
// restore vsync mode
g_videoConfig.SetVSyncMode((VSYNC)g_guiSettings.GetInt("videoscreen.vsync"));
SetFullScreenViewWindow(res);
m_Resolution = res;
- Unlock();
+ Unlock();
}
}
@@ -903,7 +903,7 @@
// For now these are all on the first screen.
g_settings.m_ResInfo[res].iScreen = 0;
static const float fOptimalSwitchPoint = 8.0f / (3.0f*sqrt(3.0f)); // see XboxRenderer.cpp
-
+
// 1080i
switch (res)
{
@@ -1045,8 +1045,8 @@
SDL_FillRect(m_screenSurface->SDL(), NULL, 0x00010001);
#elif defined(HAS_SDL_OPENGL)
GLVALIDATE;
- glClear(GL_COLOR_BUFFER_BIT);
-#endif
+ glClear(GL_COLOR_BUFFER_BIT);
+#endif
}
void CGraphicContext::CaptureStateBlock()
@@ -1062,7 +1062,7 @@
// Creation failure
m_stateBlock = 0xffffffff;
}
-#endif
+#endif
#ifdef HAS_SDL_OPENGL
glMatrixMode(GL_PROJECTION);
glPushMatrix();
@@ -1109,21 +1109,21 @@
m_windowResolution = res;
if (needsScaling && m_Resolution != INVALID)
{
- // calculate necessary scalings
+ // calculate necessary scalings
float fFromWidth;
float fFromHeight;
float fToPosX;
float fToPosY;
float fToWidth;
float fToHeight;
-
+
{
fFromWidth = (float)g_settings.m_ResInfo[res].iWidth;
fFromHeight = (float)g_settings.m_ResInfo[res].iHeight;
fToPosX = (float)g_settings.m_ResInfo[m_Resolution].Overscan.left;
fToPosY = (float)g_settings.m_ResInfo[m_Resolution].Overscan.top;
fToWidth = (float)g_settings.m_ResInfo[m_Resolution].Overscan.right - fToPosX;
- fToHeight = (float)g_settings.m_ResInfo[m_Resolution].Overscan.bottom - fToPosY;
+ fToHeight = (float)g_settings.m_ResInfo[m_Resolution].Overscan.bottom - fToPosY;
}
// add additional zoom to compensate for any overskan built in skin
@@ -1139,12 +1139,12 @@
fToPosX -= fToWidth * fZoom * 0.5f;
fToWidth *= fZoom + 1.0f;
- // adjust for aspect ratio as zoom is given in the vertical direction and we don't
- // do aspect ratio corrections in the gui code
+ // adjust for aspect ratio as zoom is given in the vertical direction and we don't
+ // do aspect ratio corrections in the gui code
fZoom = fZoom / g_settings.m_ResInfo[m_Resolution].fPixelRatio;
fToPosY -= fToHeight * fZoom * 0.5f;
fToHeight *= fZoom + 1.0f;
-
+
m_guiScaleX = fFromWidth / fToWidth;
m_guiScaleY = fFromHeight / fToHeight;
TransformMatrix windowOffset = TransformMatrix::CreateTranslation(posX, posY);
@@ -1243,7 +1243,7 @@
// the camera has changed, and if so, changes it. Similarly, it could set
// the world transform at that point as well (or even combine world + view
// to cut down on one setting)
-
+
// and calculate the offset from the screen center
CPoint offset = camera - CPoint(m_iScreenWidth*0.5f, m_iScreenHeight*0.5f);
@@ -1258,7 +1258,7 @@
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
- glTranslatef(-(viewport[0] + w + offset.x), +(viewport[1] + h + offset.y), 0);
+ glTranslatef(-(viewport[0] + w + offset.x), +(viewport[1] + h + offset.y), 0);
gluLookAt(0.0, 0.0, -2.0*h, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
@@ -1318,8 +1318,8 @@
}
m_surfaces[tid] = surface;
return true;
- }
- else
+ }
+ else
{
m_surfaces[tid] = dest;
dest->MakeCurrent();
@@ -1327,7 +1327,7 @@
#else
CLog::Log(LOGDEBUG, "Creating surface for thread %ul", tid);
CSurface* surface = InitializeSurface();
- if (surface)
+ if (surface)
{
m_surfaces[tid] = surface;
return true;
@@ -1348,10 +1348,10 @@
Lock();
screenSurface = new CSurface(m_iScreenWidth, m_iScreenHeight, true, m_screenSurface, m_screenSurface);
- if (!screenSurface || !screenSurface->IsValid())
+ if (!screenSurface || !screenSurface->IsValid())
{
CLog::Log(LOGERROR, "Surface creation error");
- if (screenSurface)
+ if (screenSurface)
{
delete screenSurface;
}
@@ -1359,20 +1359,20 @@
return NULL;
}
glClearColor( 0.0f, 0.0f, 0.0f, 0.0f );
-
+
glViewport(0, 0, m_iScreenWidth, m_iScreenHeight);
glScissor(0, 0, m_iScreenWidth, m_iScreenHeight);
- glEnable(GL_TEXTURE_2D);
- glEnable(GL_SCISSOR_TEST);
-
+ glEnable(GL_TEXTURE_2D);
+ glEnable(GL_SCISSOR_TEST);
+
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
-
+
glOrtho(0.0f, m_iScreenWidth-1, m_iScreenHeight-1, 0.0f, -1.0f, 1.0f);
glMatrixMode(GL_MODELVIEW);
- glLoadIdentity();
-
+ glLoadIdentity();
+
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
glEnable(GL_BLEND); // Turn Blending On
glDisable(GL_DEPTH_TEST);
@@ -1398,7 +1398,7 @@
Uint32 tid = SDL_ThreadID();
CSingleLock aLock(m_surfaceLock);
iter = m_surfaces.find(tid);
- if (iter==m_surfaces.end())
+ if (iter==m_surfaces.end())
{
m_screenSurface->ReleaseContext();
Unlock();
@@ -1415,7 +1415,7 @@
map<Uint32, CSurface*>::iterator iter;
Uint32 tid = SDL_ThreadID();
iter = m_surfaces.find(tid);
- if (iter!=m_surfaces.end())
+ if (iter!=m_surfaces.end())
m_surfaces.erase(iter);
#endif
}
@@ -1438,7 +1438,7 @@
Uint32 tid = SDL_ThreadID();
CSingleLock aLock(m_surfaceLock);
iter = m_surfaces.find(tid);
- if (iter==m_surfaces.end())
+ if (iter==m_surfaces.end())
{
Unlock();
return;
@@ -1513,13 +1513,13 @@
int blanking = g_guiSettings.GetInt("videoscreen.displayblanking");
bool blankOtherDisplays = (blanking == BLANKING_ALL_DISPLAYS);
#endif
-
+
if (fs)
{
// Code from this point on should be platform dependent. The Win32 version could
- // probably use GetSystemMetrics/EnumDisplayDevices/GetDeviceCaps to query current
+ // probably use GetSystemMetrics/EnumDisplayDevices/GetDeviceCaps to query current
// resolution on the requested display no. and set 'width' and 'height'
-
+
m_iFullScreenWidth = m_iScreenWidth;
m_iFullScreenHeight = m_iScreenHeight;
#ifdef HAS_XRANDR
@@ -1532,7 +1532,7 @@
mode.hz = g_settings.m_ResInfo[res].fRefreshRate;
mode.id = g_settings.m_ResInfo[res].strId;
g_xrandr.SetMode(out, mode);
- SDL_ShowCursor(SDL_ENABLE);
+ SDL_ShowCursor(SDL_ENABLE);
#endif
#if defined(__APPLE__)
Cocoa_GL_SetFullScreen(m_iFullScreenWidth, m_iFullScreenHeight, true, blankOtherDisplays, g_advancedSettings.m_osx_GLFullScreen);
@@ -1595,9 +1595,9 @@
{
_NET_WM_STATE_REMOVE = 0,
_NET_WM_STATE_ADD = 1,
- _NET_WM_STATE_TOGGLE = 2
+ _NET_WM_STATE_TOGGLE = 2
};
-
+
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
SDL_GetWMInfo(&info);
@@ -1606,14 +1606,14 @@
XEvent xev;
Atom stateAtom, fullScreenAtom;
Display * pRootDisplay = XOpenDisplay(NULL);
- int screen = DefaultScreen(pRootDisplay);
+ int screen = DefaultScreen(pRootDisplay);
Window tempwindow, parent, glparent = info.info.x11.window;
Window *children = NULL;
unsigned int numchildren;
// get the real parent window
Window previousparent;
- do
+ do
{
XQueryTree(pRootDisplay, glparent, &tempwindow, &parent, &children, &numchildren);
if (parent==tempwindow)
@@ -1621,11 +1621,11 @@
previousparent = glparent;
glparent = parent;
} while (1);
-
+
glparent = previousparent;
stateAtom = XInternAtom(pRootDisplay, "_NET_WM_STATE", False);
fullScreenAtom = XInternAtom(pRootDisplay, "_NET_WM_STATE_FULLSCREEN", False);
-
+
xev.xclient.type = ClientMessage;
xev.xclient.serial = 0;
xev.xclient.send_event = True;
@@ -1638,8 +1638,8 @@
XChangeProperty(pRootDisplay, glparent, stateAtom, XA_ATOM, 32, PropModeReplace,
(unsigned char *)&fullScreenAtom, 1);
- if (XSendEvent(pRootDisplay, DefaultRootWindow(pRootDisplay), False,
- SubstructureRedirectMask | SubstructureNotifyMask,
+ if (XSendEvent(pRootDisplay, DefaultRootWindow(pRootDisplay), False,
+ SubstructureRedirectMask | SubstructureNotifyMask,
&xev))
{
m_bFullScreenRoot = fs;
Modified: branches/xbmc-smoothvideo/guilib/GraphicContext.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/GraphicContext.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/GraphicContext.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -21,7 +21,7 @@
/*!
\file GraphicContext.h
-\brief
+\brief
*/
#ifndef GUILIB_GRAPHICCONTEXT_H
@@ -63,7 +63,7 @@
/*!
\ingroup graphics
- \brief
+ \brief
*/
enum RESOLUTION {
INVALID = -1,
@@ -104,7 +104,7 @@
/*!
\ingroup graphics
- \brief
+ \brief
*/
struct OVERSCAN
{
@@ -116,7 +116,7 @@
/*!
\ingroup graphics
- \brief
+ \brief
*/
struct RESOLUTION_INFO
{
@@ -135,26 +135,26 @@
/*!
\ingroup graphics
- \brief
+ \brief
*/
class CGraphicContext : public CCriticalSection
{
public:
CGraphicContext(void);
virtual ~CGraphicContext(void);
-#ifndef HAS_SDL
+#ifndef HAS_SDL
LPDIRECT3DDEVICE8 Get3DDevice() { return m_pd3dDevice; }
void SetD3DDevice(LPDIRECT3DDEVICE8 p3dDevice);
// void GetD3DParameters(D3DPRESENT_PARAMETERS ¶ms);
void SetD3DParameters(D3DPRESENT_PARAMETERS *p3dParams);
int GetBackbufferCount() const { return (m_pd3dParams)?m_pd3dParams->BackBufferCount:0; }
#else
- inline void setScreenSurface(Surface::CSurface* surface) XBMC_FORCE_INLINE { m_screenSurface = surface; }
- inline Surface::CSurface* getScreenSurface() XBMC_FORCE_INLINE { return m_screenSurface; }
+ inline void setScreenSurface(Surface::CSurface* surface) XBMC_FORCE_INLINE { m_screenSurface = surface; }
+ inline Surface::CSurface* getScreenSurface() XBMC_FORCE_INLINE { return m_screenSurface; }
#endif
#ifdef HAS_SDL_2D
- int BlitToScreen(SDL_Surface *src, SDL_Rect *srcrect, SDL_Rect *dstrect);
-#endif
+ int BlitToScreen(SDL_Surface *src, SDL_Rect *srcrect, SDL_Rect *dstrect);
+#endif
#ifdef HAS_SDL_OPENGL
bool ValidateSurface(Surface::CSurface* dest=NULL);
Surface::CSurface* InitializeSurface();
@@ -264,13 +264,13 @@
int GetMaxTextureSize() const { return m_maxTextureSize; };
protected:
IMsgSenderCallback* m_pCallback;
-#ifndef HAS_SDL
+#ifndef HAS_SDL
LPDIRECT3DDEVICE8 m_pd3dDevice;
D3DPRESENT_PARAMETERS* m_pd3dParams;
std::stack<D3DVIEWPORT8*> m_viewStack;
DWORD m_stateBlock;
#else
- Surface::CSurface* m_screenSurface;
+ Surface::CSurface* m_screenSurface;
#endif
#ifdef HAS_SDL_2D
std::stack<SDL_Rect*> m_viewStack;
@@ -294,7 +294,7 @@
bool m_bFullScreenVideo;
bool m_bCalibrating;
RESOLUTION m_Resolution;
-
+
private:
void UpdateCameraPosition(const CPoint &camera);
void UpdateFinalTransform(const TransformMatrix &matrix);
@@ -317,7 +317,7 @@
/*!
\ingroup graphics
- \brief
+ \brief
*/
extern CGraphicContext g_graphicsContext;
#endif
Modified: branches/xbmc-smoothvideo/guilib/IMsgSenderCallback.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/IMsgSenderCallback.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/IMsgSenderCallback.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file IMsgSenderCallback.h
-\brief
+\brief
*/
#ifndef GUILIB_IMSGSENDERCALLBACK
@@ -33,13 +33,13 @@
/*!
\ingroup winman
- \brief
+ \brief
*/
class IMsgSenderCallback
{
public:
virtual bool SendMessage(CGUIMessage& message) = 0;
- virtual ~IMsgSenderCallback() {}
+ virtual ~IMsgSenderCallback() {}
};
#endif
Modified: branches/xbmc-smoothvideo/guilib/IMsgTargetCallback.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/IMsgTargetCallback.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/IMsgTargetCallback.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file IMsgTargetCallback.h
-\brief
+\brief
*/
#ifndef GUILIB_IMSGTARGETCALLBACK
@@ -33,7 +33,7 @@
/*!
\ingroup winman
- \brief
+ \brief
*/
class IMsgTargetCallback
{
Modified: branches/xbmc-smoothvideo/guilib/IWindowManagerCallback.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/IWindowManagerCallback.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/IWindowManagerCallback.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file IWindowManagerCallback.h
-\brief
+\brief
*/
#pragma once
@@ -28,7 +28,7 @@
/*!
\ingroup winman
- \brief
+ \brief
*/
class IWindowManagerCallback
{
Modified: branches/xbmc-smoothvideo/guilib/Key.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/Key.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/Key.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -64,7 +64,7 @@
}
DWORD CKey::GetUnicode() const
-{
+{
if (m_dwButtonCode>=KEY_ASCII && m_dwButtonCode < KEY_UNICODE) // will need to change when Unicode is fully implemented
return m_dwButtonCode-KEY_ASCII;
else
Modified: branches/xbmc-smoothvideo/guilib/Key.h
===================================================================
--- branches/xbmc-smoothvideo/guilib/Key.h 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/Key.h 2009-03-18 17:36:32 UTC (rev 18664)
@@ -1,6 +1,6 @@
/*!
\file Key.h
- \brief
+ \brief
*/
#ifndef GUILIB_KEY
@@ -380,7 +380,7 @@
/*!
\ingroup actionkeys
- \brief
+ \brief
*/
class CAction
{
@@ -405,7 +405,7 @@
/*!
\ingroup actionkeys
- \brief
+ \brief
*/
class CKey
{
Modified: branches/xbmc-smoothvideo/guilib/LocalizeStrings.cpp
===================================================================
--- branches/xbmc-smoothvideo/guilib/LocalizeStrings.cpp 2009-03-18 16:22:27 UTC (rev 18663)
+++ branches/xbmc-smoothvideo/guilib/LocalizeStrings.cpp 2009-03-18 17:36:32 UTC (rev 18664)
@@ -86,7 +86,7 @@
XMLUtils::GetEncoding(&xmlDoc, encoding);
TiXmlElement* pRootElement = xmlDoc.RootElement();
- if (!pRootElement || pRootElement->NoChildren() ||
+ if (!pRootElement || pRootElement->NoChildren() ||
pRootElement->ValueStr()!=CStdString("strings"))
{
CLog::Log(LOGERROR, "%s Doesn't contain <strings>", filename.c_str());
@@ -137,9 +137,9 @@
m_strings[20028] = ToUTF8(encoding, "K");
m_strings[20029] = ToUTF8(encoding, "\xB0C");
m_strings[20030] = ToUTF8(encoding, "\xB0R\xE9");
- m_strings[20031] = ToUTF8(encoding, "\xB0Ra");
- m_strings[20032] = ToUTF8(encoding, "\xB0R\xF8");
- m_strings[20033] = ToUTF8(encoding, "\xB0De");
+ m_strings[20031] = ToUTF8(encoding, "\xB0Ra");
+ m_strings[20032] = ToUTF8(encoding, "\xB0R\xF8");
+ m_strings[20033] = ToUTF8(encoding, "\xB0De");
m_strings[20034] = ToUTF8(encoding, "\xB0N");
m_strings[20200] = ToUTF8(encoding, "km/h");
@@ -221,7 +221,7 @@
CLog::Log(LOGERROR, "%s: Trying to clear non existent block %s", __FUNCTION__, id.c_str());
return; // doesn't exist
}
-
+
// clear our block
Clear(it->second, it->second + block_size);
m_blocks.erase(it);
Modified: branches/xbmc-smoothvideo/guilib/LocalizeStrings.h
@@ Diff output truncated at 100000 characters. @@
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|