Advertisement
Vladar

Part of libtcod's console_c.c

Nov 28th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. int TCOD_console_print_internal(TCOD_console_t con,int x,int y, int rw, int rh, TCOD_bkgnd_flag_t flag,
  2.     TCOD_alignment_t align, char *msg, bool can_split, bool count_only) {
  3.     unsigned char *c=(unsigned char *)msg;
  4.     int cx=0,cy=y;
  5.     int minx,maxx,miny,maxy;
  6.     TCOD_color_t oldFore;
  7.     TCOD_color_t oldBack;
  8.     TCOD_console_data_t *dat=con ? (TCOD_console_data_t *)con : TCOD_ctx.root;
  9.     TCOD_IFNOT ( dat != NULL
  10.         && (unsigned)(x) < (unsigned)dat->w && (unsigned)(y) < (unsigned)dat->h )
  11.         return 0;
  12.     TCOD_IFNOT(msg != NULL) return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement