Changeset 180 for branches/highdpi/Packages/CevoComponents/EOTButton.pas
- Timestamp:
- Jun 23, 2019, 11:57:39 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/CevoComponents/EOTButton.pas
r178 r180 37 37 procedure Register; 38 38 39 39 40 implementation 41 40 42 41 43 procedure Register; … … 124 126 begin 125 127 // TODO: For some reason BitBlt is not working with gray background here 126 // BitBlt(Buffer.Canvas.Handle, 0, 0, 48, 48, Back.Canvas.Handle, 0,128 //DpiBitBlt(Buffer.Canvas.Handle, 0, 0, 48, 48, Back.Canvas.Handle, 0, 127 129 // 0, SRCCOPY); 128 130 Buffer.Canvas.Draw(0, 0, Back); … … 132 134 ImageOp_CBC(Buffer, Template, 8, 8, 1 + 32 * Byte(FIndex), 246, 32, 32, 133 135 $000000, $FFFFFF); 134 BitBlt(Canvas.Handle, 0, 0, 48, 48, Buffer.Canvas.Handle, 0, 0, SRCCOPY);136 DpiBitBlt(Canvas.Handle, 0, 0, 48, 48, Buffer.Canvas.Handle, 0, 0, SRCCOPY); 135 137 end 136 138 else … … 164 166 procedure TEOTButton.SetBack(ca: TDpiCanvas; x, y: integer); 165 167 begin 166 BitBlt(Back.Canvas.Handle, 0, 0, 48, 48, ca.Handle, x, y, SRCCOPY);168 DpiBitBlt(Back.Canvas.Handle, 0, 0, 48, 48, ca.Handle, x, y, SRCCOPY); 167 169 end; 168 170
Note:
See TracChangeset
for help on using the changeset viewer.