1 |
/* ************************************************************************* |
/* ************************************************************************* |
2 |
* Copyright (c) 2005 VMware, Inc. |
* Copyright (c) 2005 VMware, Inc. |
3 |
|
* Copyright (c) 2011 - 2017 Andreas Persson |
4 |
* |
* |
5 |
* Permission is hereby granted, free of charge, to any person obtaining |
* Permission is hereby granted, free of charge, to any person obtaining |
6 |
* a copy of this software and associated documentation files (the |
* a copy of this software and associated documentation files (the |
188 |
return; |
return; |
189 |
} |
} |
190 |
|
|
191 |
|
int xPadding, yPadding; |
192 |
|
get_padding(xPadding, yPadding); |
193 |
|
|
194 |
|
width -= 2 * xPadding; |
195 |
|
|
196 |
/* |
/* |
197 |
* We may need to reset the wrap width, so do this regardless of whether |
* We may need to reset the wrap width, so do this regardless of whether |
198 |
* or not we've changed the width. |
* or not we've changed the width. |
201 |
|
|
202 |
int unused; |
int unused; |
203 |
get_layout()->get_pixel_size(unused, mWrapHeight); |
get_layout()->get_pixel_size(unused, mWrapHeight); |
204 |
|
mWrapHeight += 2 * yPadding; |
205 |
|
|
206 |
if (mWrapWidth != width) { |
if (mWrapWidth != width) { |
207 |
mWrapWidth = width; |
mWrapWidth = width; |