This commit is contained in:
parent
2b15e7e0a3
commit
39dd112f2b
5 changed files with 33 additions and 22 deletions
|
|
@ -22,11 +22,12 @@ static void MWAPI resize_window(MwWidget handle, void* user, void* call) {
|
|||
}
|
||||
|
||||
static void MWAPI layout_document(MwWidget handle, void* user, void* call) {
|
||||
int height = *(int*)call;
|
||||
MwRect size = *(MwRect*)call;
|
||||
|
||||
MwViewportSetSize(viewport, MwGetInteger(document, MwNwidth), height);
|
||||
MwViewportSetSize(viewport, size.width, size.height);
|
||||
MwVaApply(document,
|
||||
MwNheight, height,
|
||||
MwNwidth, size.width,
|
||||
MwNheight, size.height,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue