Results 1 to 7 of 7

Thread: direct draw question

  1. #1

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409

    direct draw question

    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??

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: direct draw question

    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??
    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....

  3. #3

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409
    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
    hmm that doesnt sound good

    well does anyone know how to use the clipper in DX

  4. #4
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    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...

  5. #5

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409
    full screen

  6. #6

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409
    set the source and dest rect to the size so it can fit on the surface you are blt to...
    wont this strech or in this case do the opposite and make the it smaller

  7. #7
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width