Ignore:
Timestamp:
Apr 9, 2015, 9:58:36 PM (10 years ago)
Author:
chronos
Message:
  • Fixed: Use csOpaque control style also to Image, PaintBox and OpenGLControl.
  • Modified: Change size of test frame with SpinEdits as delayed using timer.
  • Updated: BRGABitmap package to version 8.1.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GraphicTest/Packages/bgrabitmap/bgracolorint.pas

    r452 r472  
    167167  end;
    168168{$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;
     169var prod: int64;
     170begin
     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);
    174183end;
    175184{$endif}
Note: See TracChangeset for help on using the changeset viewer.