File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ library
129129
130130 if flag(recent-ish)
131131 cpp-options :
132- -D RECENT_ISH
132+ -D __RECENT_ISH__
133133 pkgconfig-depends :
134134 sdl2 >= 2.0.10
135135 else
Original file line number Diff line number Diff line change 1+ {-# LANGUAGE CPP #-}
12{-# LANGUAGE DeriveDataTypeable #-}
3+
24module SDL.Raw.Types (
35 -- * Type Aliases
46 -- ** Function Types
@@ -67,7 +69,7 @@ module SDL.Raw.Types (
6769 PixelFormat (.. ),
6870 Point (.. ),
6971 Rect (.. ),
70- #ifdef RECENT_ISH
72+ #ifdef __RECENT_ISH__
7173 FPoint (.. ),
7274 FRect (.. ),
7375#endif
@@ -1358,7 +1360,7 @@ instance Storable Rect where
13581360 (# poke SDL_Rect , w) ptr w
13591361 (# poke SDL_Rect , h) ptr h
13601362
1361- #ifdef RECENT_ISH
1363+ #ifdef __RECENT_ISH__
13621364
13631365data FPoint = FPoint
13641366 { fPointX :: ! CFloat
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ module SDL.Raw.Video (
108108 renderClear ,
109109 renderCopy ,
110110 renderCopyEx ,
111- #ifdef RECENT_ISH
111+ #ifdef __RECENT_ISH__
112112 renderCopyExF ,
113113#endif
114114 renderDrawLine ,
@@ -328,7 +328,7 @@ foreign import ccall "SDL.h SDL_QueryTexture" queryTextureFFI :: Texture -> Ptr
328328foreign import ccall " SDL.h SDL_RenderClear" renderClearFFI :: Renderer -> IO CInt
329329foreign import ccall " SDL.h SDL_RenderCopy" renderCopyFFI :: Renderer -> Texture -> Ptr Rect -> Ptr Rect -> IO CInt
330330foreign import ccall " SDL.h SDL_RenderCopyEx" renderCopyExFFI :: Renderer -> Texture -> Ptr Rect -> Ptr Rect -> CDouble -> Ptr Point -> RendererFlip -> IO CInt
331- #ifdef RECENT_ISH
331+ #ifdef __RECENT_ISH__
332332foreign import ccall " SDL.h SDL_RenderCopyExF" renderCopyExFFFI :: Renderer -> Texture -> Ptr Rect -> Ptr FRect -> CDouble -> Ptr FPoint -> RendererFlip -> IO CInt
333333#endif
334334foreign import ccall " SDL.h SDL_RenderDrawLine" renderDrawLineFFI :: Renderer -> CInt -> CInt -> CInt -> CInt -> IO CInt
@@ -841,7 +841,7 @@ renderCopyEx :: MonadIO m => Renderer -> Texture -> Ptr Rect -> Ptr Rect -> CDou
841841renderCopyEx v1 v2 v3 v4 v5 v6 v7 = liftIO $ renderCopyExFFI v1 v2 v3 v4 v5 v6 v7
842842{-# INLINE renderCopyEx #-}
843843
844- #ifdef RECENT_ISH
844+ #ifdef __RECENT_ISH__
845845renderCopyExF :: MonadIO m => Renderer -> Texture -> Ptr Rect -> Ptr FRect -> CDouble -> Ptr FPoint -> RendererFlip -> m CInt
846846renderCopyExF v1 v2 v3 v4 v5 v6 v7 = liftIO $ renderCopyExFFFI v1 v2 v3 v4 v5 v6 v7
847847{-# INLINE renderCopyExF #-}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module SDL.Video.Renderer
2323 , clear
2424 , copy
2525 , copyEx
26- #ifdef RECENT_ISH
26+ #ifdef __RECENT_ISH__
2727 , copyExF
2828#endif
2929 , drawLine
@@ -765,7 +765,7 @@ copyEx (Renderer r) (Texture t) srcRect dstRect theta center flips =
765765 V2 x y -> (if x then Raw. SDL_FLIP_HORIZONTAL else 0 ) .|.
766766 (if y then Raw. SDL_FLIP_VERTICAL else 0 ))
767767
768- #ifdef RECENT_ISH
768+ #ifdef __RECENT_ISH__
769769-- | Copy a portion of the texture to the current rendering target, optionally rotating it by angle around the given center and also flipping it top-bottom and/or left-right.
770770copyExF :: MonadIO m
771771 => Renderer -- ^ The rendering context
You can’t perform that action at this time.
0 commit comments