24-01-2007, 01:25 AM
Code:
' Release DC
Call DD_BackBuffer.ReleaseDC(TexthDC)
' Get the rect for the back buffer to blit from
rec.Top = 0
rec.Bottom = (MAX_MAPY + 1) * PIC_Y
rec.Left = 0
rec.Right = (MAX_MAPX + 1) * PIC_X
' Get the rect to blit to
Call DX.GetWindowRect(frmMirage.picScreen.hwnd, rec_pos)
rec_pos.Bottom = rec_pos.Top + ((MAX_MAPY + 1) * PIC_Y) - ZoomOption
rec_pos.Right = rec_pos.Left + ((MAX_MAPX + 1) * PIC_X) - ZoomOption
' Blit the backbuffer to MiscBuffer
Call DD_MiscBuffer.BltFast(0, 0, DD_BackBuffer, rec, DDBLTFAST_WAIT)
You can get the gist of the idea there, by subtracting from the bottom and right, it make the map area smaller.