/** * Flag to activate extra clipping for some PNAs. * @return True if extra clipping needs to be done, False otherwise */ static inline bool need_clipping() { if (!is_old_ce()) return false; return model_is_hp31x() || model_is_medion_p5(); }
void Window::set(ContainerWindow *parent, LPCTSTR cls, LPCTSTR text, int left, int top, unsigned width, unsigned height, bool center, bool notify, bool show, bool tabstop, bool border) { #ifdef ENABLE_SDL this->parent = parent; this->left = left; this->top = top; canvas.set(width, height); if (parent != NULL) parent->add_child(*this); on_create(); #else /* !ENABLE_SDL */ DWORD ex_style = 0; DWORD style = WS_CLIPCHILDREN | WS_CLIPSIBLINGS; if (parent == NULL) style |= WS_POPUP; else style |= WS_CHILD; if (show) style |= WS_VISIBLE; if (center) style |= SS_CENTER; if (notify) style |= SS_NOTIFY; if (tabstop) style |= WS_TABSTOP; if (border) { style |= WS_BORDER; if (model_is_hp31x()) { ex_style |= WS_EX_CLIENTEDGE; style |= WS_THICKFRAME; } } set(parent, cls, text, left, top, width, height, style, ex_style); #endif /* !ENABLE_SDL */ }