From c4035b83ef54da2e31c489197cee60f99056b2e2 Mon Sep 17 00:00:00 2001 From: blondie7575 Date: Mon, 26 Feb 2018 12:32:54 -0800 Subject: [PATCH] Added WGSetContentWidth and WGSetContentHeight --- Documentation.md | 26 ++++++++++++++++++++++++++ WeeGUI_MLI.s | 2 ++ views.s | 38 ++++++++++++++++++++++++++++++++++++++ weegui.dsk | Bin 143360 -> 143360 bytes 4 files changed, 66 insertions(+) diff --git a/Documentation.md b/Documentation.md index f506c79..0c1de14 100644 --- a/Documentation.md +++ b/Documentation.md @@ -858,6 +858,32 @@ Not available + +####WGViewWidth +Changes the content width of the currently selected view. + + + +
AssemblyApplesoft
+A: New content width for the view + +Not available +
+ + +####WGViewHeight +Changes the content width of the currently selected view. + + + +
AssemblyApplesoft
+A: New content height for the view + +Not available +
+ + +
Drawing Routines diff --git a/WeeGUI_MLI.s b/WeeGUI_MLI.s index 4b09b3e..67a7276 100644 --- a/WeeGUI_MLI.s +++ b/WeeGUI_MLI.s @@ -69,4 +69,6 @@ WGExit = 70 WGCreateProgress = 72 WGSetState = 74 WGViewSetRawTitle = 76 +WGSetContentWidth = 77 +WGSetContentHeight = 78 diff --git a/views.s b/views.s index e0b85b9..b91375a 100644 --- a/views.s +++ b/views.s @@ -1415,6 +1415,44 @@ WGScrollYBy_done: rts +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; WGSetContentWidth +; Sets the content width of the current view +; A: New width +; +WGSetContentWidth: + phy + pha + + LDY_ACTIVEVIEW + pla + + sta WG_VIEWRECORDS+7,y + jsr cacheClipPlanes ; Content width changed, so clipping cache is stale + + ply + rts + + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; WGSetContentHeight +; Sets the content width of the current view +; A: New height +; +WGSetContentHeight: + phy + pha + + LDY_ACTIVEVIEW + pla + + sta WG_VIEWRECORDS+8,y + jsr cacheClipPlanes ; Content height changed, so clipping cache is stale + + ply + rts + + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; WGViewPaintAll ; Repaints all views diff --git a/weegui.dsk b/weegui.dsk index 3dadced488d590b9cdb94c4f79d4664d51384454..db3936a4265ffd0e4fc9f940e0bb5afdcdf8ce2a 100644 GIT binary patch delta 4742 zcma)9e@q+K9e=jZcm4sfNq@w4e(08D1$SvjqeP-?YDfa%00ZW1@ST}DYZ9B=E^DN& zD`8Xb5^`BWI7Z^GDJ`K0%@vo`hy+cWE73Bw(I9J9YpT{JX&bt9EvuI78i_zcQ}%uD zumdTT=0EPe_kG{@`TqXCXL-^lPuhkbcW#MpWb+WZjAD3VM)yT3Dk>YR>e0fF-h^Ce z>uQu`E5nnKKIf4NW^J=lG-_>56gM0xpB9o#sd`<|qU_P_N!rt5Q>O*(QCM6BB9Dno zsi(z`SsE6o5{!QXt{~o})#=21Lsu4b z*q_xVH&1NS>rc`8n*2|9fSTi1r-iFCLTW}5&QZT@Ph&yy$PiZ8Bs+iu2VaNZ(< zge!wrX9Wyy7WI!m%oFtw0OWlQVKq8odTt`tP5C9+^1x?Ha0%>N81@hH`v`Ft4tPCD zro~=*^1|qXzZHLyMhUZd{&a*fl~c{!g(&-4S(4E=_M;1LgI3N{^a(0DH9qFb=o*4) z-18Wv&>DIysxVkdIH88e23BPe6E(tyoO7QR*tOS%?3UtBO$*hYmLjD{LoI&1Oq>?B z_=si0TiH~Z;!E8S9Pm3i>J(L~`Ixx2V0YcwYG37^%3{t^>#KFv98Wwbt}5=W=Yog0 z1J!M1Z&Vg=57lDD_m#2F@%^qB2mn#`ko%f8ug(eT&BW6px08zMt`5&*?qSPG`I?3l zT47=!Wr@+JXdDdtHyJ%*GMh~!=4OgAO(&Qi7D<#i4lc5iFHOFT7(ZbX`|M($gRGt8 znKpmWa1k z5ba&$`!!3VIkB{;JJ|!(8tS1%c6VJH$-5-YB@?g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