Fossil SCM

In the background color filter, the color names "rgv(N,N,N)" and "hsv(N,N,N)" were never supported. Omit all pretense of supporting them.

drh 2025-03-26 10:52 trunk
Commit db4329ca1b0abdfbfe25683eef9b47bd7367d2864c313c5c9422fffbab791a13
1 file changed -4
--- src/color.c
+++ src/color.c
@@ -192,14 +192,10 @@
192192
}
193193
if( i==7 ){
194194
return v;
195195
}
196196
return -1;
197
- }else if( sqlite3_strlike("rgb%)", zName,0)==0 ){
198
- return -1;
199
- }else if( sqlite3_strlike("hsl%)",zName,0)==0 ){
200
- return -1;
201197
}else{
202198
int iMin = 0;
203199
int iMax = count(aCssColors)-1;
204200
while( iMin<=iMax ){
205201
int iMid = (iMin+iMax)/2;
206202
--- src/color.c
+++ src/color.c
@@ -192,14 +192,10 @@
192 }
193 if( i==7 ){
194 return v;
195 }
196 return -1;
197 }else if( sqlite3_strlike("rgb%)", zName,0)==0 ){
198 return -1;
199 }else if( sqlite3_strlike("hsl%)",zName,0)==0 ){
200 return -1;
201 }else{
202 int iMin = 0;
203 int iMax = count(aCssColors)-1;
204 while( iMin<=iMax ){
205 int iMid = (iMin+iMax)/2;
206
--- src/color.c
+++ src/color.c
@@ -192,14 +192,10 @@
192 }
193 if( i==7 ){
194 return v;
195 }
196 return -1;
 
 
 
 
197 }else{
198 int iMin = 0;
199 int iMax = count(aCssColors)-1;
200 while( iMin<=iMax ){
201 int iMid = (iMin+iMax)/2;
202

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button