1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-29 10:30:36 +00:00

Tweak to auto-position (IDE) - allows coordinates (0, 0).

This commit is contained in:
FellippeHeitor 2017-10-14 19:52:32 -03:00
parent cff8ae7561
commit b62e39b9f9
2 changed files with 3 additions and 3 deletions

View file

@ -248,6 +248,7 @@ IF LoadedIDESettings = 0 THEN
IDE_TopPosition = VAL(value$)
ELSE
IDE_Autopostion = 0 'If there's no position saved in the file, then we certainly don't need to try and auto-position to our last setting.
IDE_TopPosition = 0
WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_TopPosition", "0"
END IF
@ -256,6 +257,7 @@ IF LoadedIDESettings = 0 THEN
IDE_LeftPosition = VAL(value$)
ELSE
IDE_Autopostion = 0 'If there's no position saved in the file, then we certainly don't need to try and auto-position to our last setting.
IDE_LeftPosition = 0
WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_LeftPosition", "0"
END IF

View file

@ -915,9 +915,7 @@ gl_scan_header
'-----------------------QB64 COMPILER ONCE ONLY SETUP CODE ENDS HERE---------------------------------------
IF NoIDEMode THEN IDE_AutoPosition = 0: GOTO noide
IF IDE_AutoPosition <> 0 AND IDE_TopPosition <> 0 AND IDE_LeftPosition <> 0 THEN
_SCREENMOVE IDE_LeftPosition, IDE_TopPosition
END IF
IF IDE_AutoPosition THEN _SCREENMOVE IDE_LeftPosition, IDE_TopPosition
idemode = 1
sendc$ = "" 'no initial message
IF CMDLineFile <> "" THEN sendc$ = CHR$(1) + CMDLineFile