Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. type TTile = object
  2. x, y, w, h: int
  3. type TJob = object
  4. tile*: TTile
  5.  
  6. proc foo_update_img(tile: TTile) = #, img_tile: PHDRImg) =
  7. #discard put_subrect(dst: scene.img, src: img_tile, x:tile.x, y:tile.y
  8. #Acquire(IMGLock)
  9.  
  10. var job: TJob
  11. job.tile = TTile(x: 1, y: 1, h: 1, w: 1)
  12. foo_update_img(tile: job)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement