mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2025-01-15 03:49:56 +00:00
Fix: The preview window wouldn't update properly after being restored.
This commit is contained in:
parent
5c86170281
commit
7429828435
2 changed files with 793 additions and 794 deletions
|
@ -123,6 +123,8 @@ DIM SHARED RevertEdit AS _BYTE, OldColor AS _UNSIGNED LONG
|
|||
DIM SHARED ColorPreviewWord$, BlinkStatusBar AS SINGLE, StatusBarBackColor AS _UNSIGNED LONG
|
||||
DIM SHARED HostPort AS STRING, Host AS LONG, Client AS LONG
|
||||
DIM SHARED Stream$, FormDataReceived AS _BYTE, LastFormData$
|
||||
DIM SHARED prevScreenX AS INTEGER, prevScreenY AS INTEGER
|
||||
DIM SHARED UndoPointer AS INTEGER, TotalUndoImages AS INTEGER
|
||||
|
||||
TYPE newInputBox
|
||||
ID AS LONG
|
||||
|
@ -873,7 +875,6 @@ SUB __UI_BeforeUpdateDisplay
|
|||
STATIC OriginalImageWidth AS INTEGER, OriginalImageHeight AS INTEGER
|
||||
STATIC PrevFirstSelected AS LONG
|
||||
STATIC CheckUpdateDone AS _BYTE
|
||||
STATIC UndoPointer AS INTEGER, TotalUndoImages AS INTEGER
|
||||
|
||||
STATIC LastChange AS SINGLE
|
||||
IF TIMER - BlinkStatusBar < 1 THEN
|
||||
|
@ -979,7 +980,6 @@ SUB __UI_BeforeUpdateDisplay
|
|||
|
||||
$IF WIN THEN
|
||||
IF PreviewAttached THEN
|
||||
STATIC prevScreenX AS INTEGER, prevScreenY AS INTEGER
|
||||
IF prevScreenX <> _SCREENX OR prevScreenY <> _SCREENY THEN
|
||||
prevScreenX = _SCREENX
|
||||
prevScreenY = _SCREENY
|
||||
|
@ -3131,6 +3131,10 @@ SUB CheckPreview
|
|||
IF LEN(LastFormData$) THEN
|
||||
b$ = "RESTORECRASH>" + LastFormData$ + "<END>"
|
||||
PUT #Client, , b$
|
||||
prevScreenX = -1
|
||||
prevScreenY = -1
|
||||
UndoPointer = 0
|
||||
TotalUndoImages = 0
|
||||
END IF
|
||||
|
||||
TIMER(__UI_EventsTimer) ON
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue