Changeset 472 for GraphicTest/Packages/bgrabitmap/bgracolorint.pas
- Timestamp:
- Apr 9, 2015, 9:58:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/Packages/bgrabitmap/bgracolorint.pas
r452 r472 167 167 end; 168 168 {$else} 169 begin 170 result.r := int64(color1.r)*factor65536 shr 16; 171 result.g := int64(color1.g)*factor65536 shr 16; 172 result.b := int64(color1.b)*factor65536 shr 16; 173 result.a := int64(color1.a)*factor65536 shr 16; 169 var prod: int64; 170 begin 171 prod := int64(color1.r)*factor65536; 172 if prod >= 0 then result.r := prod shr 16 173 else result.r := -((-prod) shr 16); 174 prod := int64(color1.g)*factor65536; 175 if prod >= 0 then result.g := prod shr 16 176 else result.g := -((-prod) shr 16); 177 prod := int64(color1.b)*factor65536; 178 if prod >= 0 then result.b := prod shr 16 179 else result.b := -((-prod) shr 16); 180 prod := int64(color1.a)*factor65536; 181 if prod >= 0 then result.a := prod shr 16 182 else result.a := -((-prod) shr 16); 174 183 end; 175 184 {$endif}
Note:
See TracChangeset
for help on using the changeset viewer.