Changeset 20925 for lang/haskell/nario/AppUtil.hs
- Timestamp:
- 10/07/08 20:42:00 (3 months ago)
- Files:
-
- 1 modified
-
lang/haskell/nario/AppUtil.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/haskell/nario/AppUtil.hs
r20673 r20925 1 1 module AppUtil where 2 2 3 import Multimedia.SDL (Surface, SDLKey(..), loadBMP, freeSurface, surfacePixelFormat, displayFormat, pfPalette, setColorKey, SurfaceFlag(..) )3 import Multimedia.SDL (Surface, SDLKey(..), loadBMP, freeSurface, surfacePixelFormat, displayFormat, pfPalette, setColorKey, SurfaceFlag(..), blitSurface, pt) 4 4 import Data.Maybe (fromJust) 5 5 … … 69 69 getImageSurface imgres = fromJust . flip lookup imgres 70 70 71 putimg :: Surface -> ImageResource -> ImageType -> Int -> Int -> IO () 72 putimg sur imgres imgtype x y = do 73 blitSurface (getImageSurface imgres imgtype) Nothing sur (pt x y) 74 return () 75 71 76 72 77 -- 固定座標系からセル座標系に
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)