We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault on next simple code:
int main(void) { LCUI_Widget root; LCUI_Widget status; LCUI_Init(); status = LCUIWidget_New("textview"); root = LCUIWidget_GetRoot(); Widget_Append(root, status); LCUIDisplay_SetSize(320, 239); return LCUI_Main(); }
Surface creates with minimal (320,240) size settings by default:
static LCUI_Surface X11Surface_New(void) { ... surface->width = MIN_WIDTH; surface->height = MIN_HEIGHT; ...
On surface resize task with size value less than minimal, setups minimal value:
static void X11Surface_RunTask(LCUI_Surface surface, int type) { ... w = MIN_WIDTH > w ? MIN_WIDTH : w; h = MIN_HEIGHT > h ? MIN_HEIGHT : h; ...
But if window size setup in less or equals to minimal value, surfaces struct s->ximages and s->gc do not creates:
static void X11Surface_OnResize(LCUI_Surface s, int width, int height) { ... if (width == s->width && height == s->height) { return; } ...
The text was updated successfully, but these errors were encountered:
fix(gui): segmentation fault on draw window with minimal size (lc-sof…
9b5c622
…t#200) Signed-off-by: Vasilyy Balyasnyy <[email protected]>
fix(linux): segmentation fault on draw window with minimal size (#200) (
fa23f89
#201) Signed-off-by: Vasilyy Balyasnyy <[email protected]> Co-authored-by: Vasilyy Balyasnyy <[email protected]>
Successfully merging a pull request may close this issue.
Segmentation fault on next simple code:
Surface creates with minimal (320,240) size settings by default:
On surface resize task with size value less than minimal, setups minimal value:
But if window size setup in less or equals to minimal value, surfaces struct s->ximages and s->gc do not creates:
The text was updated successfully, but these errors were encountered: