Direct3D 9.0 Sprite and Background Tiles

Implemented the tiling functions for sprites and backgrounds, not the
actual tile functions. All I had to do was properly set the source
rectangle for repitition and enable texture wrapping on the D3D Device, I
love DX, especially its internal sprite batching. Merge when ready.