Fossil

Check-in [db4329ca]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment: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.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: db4329ca1b0abdfbfe25683eef9b47bd7367d2864c313c5c9422fffbab791a13
User & Date: drh 2025-03-26 10:52:47.204
Context
2025-03-26
11:17
Improvements to the background color-filter algorithm. ... (check-in: fd2a718e user: drh tags: trunk)
10:52
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. ... (check-in: db4329ca user: drh tags: trunk)
10:30
Add the background color test page to the sitemap. ... (check-in: 7ee4e5ca user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/color.c.
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
      for(v=0, i=1; i<4; i++) v = v*256 + fossil_hexvalue(zName[i]);
      return v;
    }
    if( i==7 ){
      return v;
    }
    return -1;
  }else if( sqlite3_strlike("rgb%)", zName,0)==0 ){
    return -1;
  }else if( sqlite3_strlike("hsl%)",zName,0)==0 ){
    return -1;
  }else{
    int iMin = 0;
    int iMax = count(aCssColors)-1;
    while( iMin<=iMax ){
      int iMid = (iMin+iMax)/2;
      int c = sqlite3_stricmp(aCssColors[iMid].zName, zName);
      if( c==0 ) return aCssColors[iMid].iRGB;







<
<
<
<







190
191
192
193
194
195
196




197
198
199
200
201
202
203
      for(v=0, i=1; i<4; i++) v = v*256 + fossil_hexvalue(zName[i]);
      return v;
    }
    if( i==7 ){
      return v;
    }
    return -1;




  }else{
    int iMin = 0;
    int iMax = count(aCssColors)-1;
    while( iMin<=iMax ){
      int iMid = (iMin+iMax)/2;
      int c = sqlite3_stricmp(aCssColors[iMid].zName, zName);
      if( c==0 ) return aCssColors[iMid].iRGB;