src/video/x11/SDL_x11messagebox.c
changeset 6758 2a218048b45f
parent 6726 f2898757eaae
child 6817 93103b719488
     1.1 --- a/src/video/x11/SDL_x11messagebox.c	Sat Dec 15 21:50:17 2012 -0800
     1.2 +++ b/src/video/x11/SDL_x11messagebox.c	Sun Dec 16 14:39:49 2012 -0500
     1.3 @@ -250,6 +250,10 @@
     1.4              data->text_height = IntMax( data->text_height, height );
     1.5              text_width_max = IntMax( text_width_max, plinedata->width );
     1.6  
     1.7 +            if (lf && (lf > text) && (lf[-1] == '\r')) {
     1.8 +                plinedata->length--;
     1.9 +            }
    1.10 +
    1.11              text += plinedata->length + 1;
    1.12  
    1.13              /* Break if there are no more linefeeds. */