texteff.c
changeset 2062 00f7d339fdcb
parent 1977 4392ae3d8e31
child 2153 91e89aa8c299
equal deleted inserted replaced
2061:f67a12c65223 2062:00f7d339fdcb
    41 const int _textmessage_box_left = 10; // Pixels from left
    41 const int _textmessage_box_left = 10; // Pixels from left
    42 const int _textmessage_box_y = 150;  // Height of box
    42 const int _textmessage_box_y = 150;  // Height of box
    43 const int _textmessage_box_bottom = 30; // Pixels from bottom
    43 const int _textmessage_box_bottom = 30; // Pixels from bottom
    44 const int _textmessage_box_max_width = 400; // Max width of box
    44 const int _textmessage_box_max_width = 400; // Max width of box
    45 
    45 
    46 static byte _textmessage_backup[150*400]; // (y * max_width)
    46 static Pixel _textmessage_backup[150 * 400]; // (y * max_width)
    47 
    47 
    48 extern void memcpy_pitch(void *d, void *s, int w, int h, int spitch, int dpitch);
    48 extern void memcpy_pitch(void *d, void *s, int w, int h, int spitch, int dpitch);
    49 
    49 
    50 // Duration is in game-days
    50 // Duration is in game-days
    51 void CDECL AddTextMessage(uint16 color, uint8 duration, const char *message, ...)
    51 void CDECL AddTextMessage(uint16 color, uint8 duration, const char *message, ...)