about SDL_BlitSurface()
Is it okay to blit surface with a negative coordinates? Can it cause to crash my game if I keep using negative coordinates? Since they declared SDL_Rect x and y a Sint16 ( If im correct its a signed integer 16 bits ) I think its okay to use negative numbers but I just want to be sure about this.
It's fine.
See this.
See this.
Quote:Only the position is used in the dstrect (the width and height are ignored). Blits with negative dstrect coordinates will be clipped properly.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement