well... I'm almoast done coding the GUI for the program using SDL.. so I think I stick with it and hope people will accept it ^^
but for the moment I'm having problem with SDL_SetClipRect() I thought it would clip everything that I blit... but when I blit some text on y=-5 (or anything y negativ) with clip rect { x=10, y=0, w=text_width, h = text_height } the first letter to be blit get's on like y= -9 (for example) and the next following letters blits on y= -2 (for example) so none of them gets blited on y= -5
why?
I found this on some page
Quote:
As soon as an image is clipped with any of the clipping rectangle = borders, the x and y elements of the destination SDL_Rect supplied in = the SDL_Blt() method are modified - all other cases leave the SDL_Rect = intact.
what does this mean? do I have to recalc x and y of my things to be blited?
EDIT:
nevermind finally I understand what he meant.. the thing was that if you blit outside the rect the destination rect gets modified. after some debuging I notcied that after first blir dest.y was always dest_rect.y (in this case 0) so all I had to do was set dest_rect.y everytime I blited a letter