-#ifndef __WXUNIVERSAL__
- if (pizza->shadow_type == GTK_MYSHADOW_NONE)
- {
- /* no border, no changes to sizes */
- }
- else if (pizza->shadow_type == GTK_MYSHADOW_THIN)
- {
- /* GTK_MYSHADOW_THIN == wxSIMPLE_BORDER */
- attributes.x += 1;
- attributes.y += 1;
- attributes.width -= 2;
- attributes.height -= 2;
- }
- else
- {
- /* GTK_MYSHADOW_IN == wxSUNKEN_BORDER */
- /* GTK_MYSHADOW_OUT == wxRAISED_BORDER */
- attributes.x += 2;
- attributes.y += 2;
- attributes.width -= 4;
- attributes.height -= 4;
- }
-#endif /* __WXUNIVERSAL__ */
+ border = pizza->container.border_width;
+ attributes.x += border;
+ attributes.y += border;
+ attributes.width -= 2 * border;
+ attributes.height -= 2 * border;