equal
deleted
inserted
replaced
154 y = 0; |
154 y = 0; |
155 } |
155 } |
156 if (x + width >= _screen.width) { |
156 if (x + width >= _screen.width) { |
157 width = _screen.width - x; |
157 width = _screen.width - x; |
158 } |
158 } |
|
159 if (width <= 0 || height <= 0) return; |
159 |
160 |
160 _textmessage_visible = false; |
161 _textmessage_visible = false; |
161 /* Put our 'shot' back to the screen */ |
162 /* Put our 'shot' back to the screen */ |
162 memcpy_pitch( |
163 memcpy_pitch( |
163 _screen.dst_ptr + x + y * _screen.pitch, |
164 _screen.dst_ptr + x + y * _screen.pitch, |
218 y = 0; |
219 y = 0; |
219 } |
220 } |
220 if (x + width >= _screen.width) { |
221 if (x + width >= _screen.width) { |
221 width = _screen.width - x; |
222 width = _screen.width - x; |
222 } |
223 } |
|
224 if (width <= 0 || height <= 0) return; |
|
225 |
223 /* Make a copy of the screen as it is before painting (for undraw) */ |
226 /* Make a copy of the screen as it is before painting (for undraw) */ |
224 memcpy_pitch( |
227 memcpy_pitch( |
225 _textmessage_backup, |
228 _textmessage_backup, |
226 _screen.dst_ptr + x + y * _screen.pitch, |
229 _screen.dst_ptr + x + y * _screen.pitch, |
227 width, height, _screen.pitch, _textmsg_box.width); |
230 width, height, _screen.pitch, _textmsg_box.width); |