I am a beginner in SDL graphics. I am trying to copy a certain portion of the screen to SDL_Surface. And I tried using this code but it didn't work out
//It should blit the area of the screen bounded by rct at 0,0 of the original
//now it should blit the original at 500,100 of the screen
but nothing was blitted on the screen.
but the same code worked out well when it was written this way
original=IMG_Load("pics/picture1.png"); //I loaded a picture in the original
And it worked out very well. It blitted a small part of my window i.e. screen to 500,100 of the screen
So I think there must be something wrong with my understanding about surface blitting function.
I am using SDL 1.2.14 and Code::Blocks for IDE.
And if there is a better way to do what I am trying to do, then please suggest
Thank you in advance.
codeboyjimmyMember Since 08 Feb 2012
Offline Last Active Mar 26 2012 11:57 PM
- Group Members
- Active Posts 3
- Profile Views 457
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
codeboyjimmy hasn't added any contacts yet.
No latest visitors to show