Skip to content

Commit f034826

Browse files
bluewayswfrehwagen
andauthored
855 flag to prevent background drawing on the field (#856)
* Use HINT to set the wash color #853 * Add ini key to disable background rendering on field #853 * Let config ui pref module set the flag to prevent bg rendiner on field #855 * Default to no field background #855 * Remove unused white space #855 --------- Co-authored-by: Falk Rehwagen <[email protected]>
1 parent 1be2e1f commit f034826

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

Library/Pref/ConfigUI/configui.asm

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,22 +1029,26 @@ UICombo struct
10291029
UIC_launcher nptr.TCHAR
10301030
UIC_font FontID
10311031
UIC_hasTaskbar word
1032+
UIC_disBGRender word
10321033
UICombo ends
10331034

10341035
uicombos UICombo <
10351036
offset MotifStr,
10361037
offset GeoManagerStr,
10371038
offset BerkeleyStr,
1039+
FALSE,
10381040
FALSE
10391041
>,<
10401042
offset ISUIStr,
10411043
offset ISDeskStr,
10421044
offset EsquireStr,
1045+
TRUE,
10431046
TRUE
10441047
>,<
10451048
offset MotifStr,
10461049
offset ISDeskStr,
10471050
offset BerkeleyStr,
1051+
TRUE,
10481052
TRUE
10491053
>
10501054

@@ -1054,6 +1058,7 @@ fontIDKey char "fontid", 0
10541058
systemCat char "system", 0
10551059
editableTextFontIDKey char "editableTextFontID", 0
10561060
taskBarEnabledKey char "taskBarEnabled", 0
1061+
backgroundDisabledOnField char "backgroundDisabledOnField", 0
10571062

10581063
if ERROR_CHECK
10591064
LocalDefNLString MotifStr <"motifec.geo", 0>
@@ -1133,6 +1138,16 @@ SetUIOptions proc near
11331138
call InitFileWriteBoolean
11341139
pop di, ax
11351140

1141+
;
1142+
; handle [ui] backgroundDisabledOnField = key
1143+
;
1144+
push di
1145+
mov si, offset uiCategory
1146+
mov dx, offset backgroundDisabledOnField
1147+
mov ax, cs:uicombos[di].UIC_disBGRender
1148+
call InitFileWriteBoolean
1149+
pop di
1150+
11361151
;
11371152
; restore ds for the correct object at ds:si
11381153
;

Library/SpecUI/CommonUI/CWin/cwinFieldInit.asm

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,6 +1344,10 @@ REVISION HISTORY:
13441344

13451345
------------------------------------------------------------------------------@
13461346
1347+
1348+
backgroundCategoryString char "ui", C_NULL
1349+
backgroundDisabledOnField char "backgroundDisabledOnField", C_NULL
1350+
13471351
OLFieldOpenWin method dynamic OLFieldClass, MSG_VIS_OPEN_WIN
13481352
EC< call VisCheckVisAssumption ; Make sure vis data exists >
13491353

@@ -1423,6 +1427,22 @@ OFOW_noBG:
14231427
OFOW_gotColor:
14241428
endif
14251429
endif
1430+
; if rendering is disabled for the field
1431+
mov di, ax
1432+
push ds, si
1433+
mov cx, cs
1434+
mov ds, cx
1435+
mov si, offset backgroundCategoryString
1436+
mov dx, offset backgroundDisabledOnField
1437+
call InitFileReadBoolean
1438+
pop ds, si
1439+
jc useDefault ; not found
1440+
cmp ax, 0xFFFF
1441+
mov ax, di
1442+
jne useDefault
1443+
or ah, mask WCF_PLAIN
1444+
1445+
useDefault:
14261446
mov bp, si ; set up chunk of this object in bp
14271447
; pass handle of video driver
14281448
mov di, ds:[LMBH_handle] ; pass obj descriptor of this object

TechDocs/Markdown/Tools/tini.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,6 +2156,17 @@ color to be used.
21562156
backgroundcolor = 0
21572157
backgroundcolor = 12
21582158

2159+
#### backgroundDisabledOnField
2160+
2161+
`backgroundDisabledOnField = <Boolean>`
2162+
2163+
If true, this key tells GEOS no to render the configured background image
2164+
on the field. This is useful if ISDesk is used as launcher which is fullscreen
2165+
and renders the background image itself.
2166+
2167+
backgroundDisabledOnField = true
2168+
backgroundDisabledOnField = false
2169+
21592170
#### deleteStateFilesAfterCrash
21602171

21612172
`deleteStateFilesAfterCrash = <Boolean>`

Tools/build/product/bbxensem/Template/geos.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ AMENGLISH(NTDEMO(background = Meadows))
7171
GERMAN(NTDEMO(background = Sandstein \[800x600\]))
7272
backgroundattr = center
7373
scheme = Meadows
74+
backgroundDisabledOnField = true
7475

7576
[motif options]
7677
taskBarEnabled = true

0 commit comments

Comments
 (0)