when you try to blt a surface that is partaily off the screen the entire surface is not shown is their a way that i can make it so that it will still show part of the surface??
Printable View
when you try to blt a surface that is partaily off the screen the entire surface is not shown is their a way that i can make it so that it will still show part of the surface??
Yes you have to alter the destination rect so it will fit the surface you are blt too....There is a clipper in DX that should do the job for you, but I have never seen anyone figuring out how to use it in full screen....Quote:
Originally posted by dogfish227
when you try to blt a surface that is partaily off the screen the entire surface is not shown is their a way that i can make it so that it will still show part of the surface??
hmm that doesnt sound goodQuote:
a clipper in DX that should do the job for you, but I have never seen anyone figuring out how to use it in full screen
well does anyone know how to use the clipper in DX
Are you doing it in a window or in full screen????
BTW it isn't that hard to do it whitout the cliper...you just have to calulate where you are blitting on the screen. And and the width, and see if iy goes out of the screen...if it does, set the source and dest rect to the size so it can fit on the surface you are blt to...
full screen
wont this strech or in this case do the opposite and make the it smallerQuote:
set the source and dest rect to the size so it can fit on the surface you are blt to...
Not if you change both of them...but if you chose the dest rect smaller or bigger then the source rect, then you would strech the picture...