SDL 0.6.3 → 0.6.4
raw patch · 4 files changed
+6/−5 lines, 4 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Graphics.UI.SDL.Video: glAccumAlphaSize, glMultiSampleSamples, glMultiSampleBuffers, glStereo :: GLAttr
- Graphics.UI.SDL.Video: glDepthSize, glAccumBlueSize, glAccumGreenSize, glAccumRedSize, glStencilSize :: GLAttr
- Graphics.UI.SDL.Video: glRedSize, glDoubleBuffer, glBufferSize, glAlphaSize, glBlueSize, glGreenSize :: GLAttr
+ Graphics.UI.SDL.Video: glAccumAlphaSize :: GLAttr
+ Graphics.UI.SDL.Video: glAccumBlueSize :: GLAttr
+ Graphics.UI.SDL.Video: glAccumGreenSize :: GLAttr
+ Graphics.UI.SDL.Video: glAccumRedSize :: GLAttr
+ Graphics.UI.SDL.Video: glAlphaSize :: GLAttr
+ Graphics.UI.SDL.Video: glBlueSize :: GLAttr
+ Graphics.UI.SDL.Video: glBufferSize :: GLAttr
+ Graphics.UI.SDL.Video: glDepthSize :: GLAttr
+ Graphics.UI.SDL.Video: glDoubleBuffer :: GLAttr
+ Graphics.UI.SDL.Video: glGreenSize :: GLAttr
+ Graphics.UI.SDL.Video: glMultiSampleBuffers :: GLAttr
+ Graphics.UI.SDL.Video: glMultiSampleSamples :: GLAttr
+ Graphics.UI.SDL.Video: glRedSize :: GLAttr
+ Graphics.UI.SDL.Video: glStencilSize :: GLAttr
+ Graphics.UI.SDL.Video: glStereo :: GLAttr
- Graphics.UI.SDL.Events: User :: !UserEventID -> !Int -> !Ptr () -> !Ptr () -> Event
+ Graphics.UI.SDL.Events: User :: !UserEventID -> !Int -> !(Ptr ()) -> !(Ptr ()) -> Event
- Graphics.UI.SDL.Utilities: fromBitmask :: (Bounded a, Enum a b, Bits b) => b -> [a]
+ Graphics.UI.SDL.Utilities: fromBitmask :: (Bounded a, Enum a b, Bits b, Num b) => b -> [a]
- Graphics.UI.SDL.Utilities: toBitmask :: (Enum a b, Bits b) => [a] -> b
+ Graphics.UI.SDL.Utilities: toBitmask :: (Enum a b, Bits b, Num b) => [a] -> b
Files
- Graphics/UI/SDL/Utilities.hs +2/−2
- Graphics/UI/SDL/Video.hsc +1/−1
- Graphics/UI/SDL/WindowManagement.hsc +2/−1
- SDL.cabal +1/−1
Graphics/UI/SDL/Utilities.hs view
@@ -30,10 +30,10 @@ intToBool err action = fmap (err/=) action -toBitmask :: (Enum a b,Bits b) => [a] -> b+toBitmask :: (Enum a b,Bits b,Num b) => [a] -> b toBitmask = foldr (.|.) 0 . map fromEnum -fromBitmask :: (Bounded a,Enum a b,Bits b) => b -> [a]+fromBitmask :: (Bounded a,Enum a b,Bits b,Num b) => b -> [a] fromBitmask mask = foldr worker [] lst where lst = enumFromTo minBound maxBound worker v
Graphics/UI/SDL/Video.hsc view
@@ -83,7 +83,7 @@ import Foreign (Ptr, FunPtr, Storable(peek), castPtr, plusPtr, nullPtr, newForeignPtr_, finalizeForeignPtr, alloca, withForeignPtr, newForeignPtr)-import Foreign.C (peekCString, CString, CInt())+import Foreign.C (peekCString, CString, CInt(..)) import Foreign.Marshal.Array (withArrayLen, peekArray0, peekArray, allocaArray) import Foreign.Marshal.Utils (with, toBool, maybeWith, maybePeek, fromBool) import Control.Exception (bracket)
Graphics/UI/SDL/WindowManagement.hsc view
@@ -25,8 +25,9 @@ , queryGrabMode ) where +import Control.Monad (void) import Foreign (Int32, Ptr, Storable(peek), nullPtr, toBool, maybePeek,- void, alloca, withForeignPtr)+ alloca, withForeignPtr) import Foreign.C (withCString, peekCString, CString) import Graphics.UI.SDL.Types (Surface, SurfaceStruct)
SDL.cabal view
@@ -1,6 +1,6 @@ Cabal-Version: >= 1.6 Name: SDL-Version: 0.6.3+Version: 0.6.4 Maintainer: Lemmih (lemmih@gmail.com) Author: Lemmih (lemmih@gmail.com) Copyright: 2004-2010, Lemmih