mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Remove AColor class, because wxColour now supports alpha values.
This commit is contained in:
@@ -510,10 +510,10 @@ void ConsolePanel::exec(String const& command) {
|
||||
message->bitmap = wxBitmap(image);
|
||||
} else if (type == SCRIPT_COLOR) {
|
||||
message->text = result->toCode();
|
||||
AColor color = (AColor)*result;
|
||||
Color color = (Color)*result;
|
||||
wxImage image(30,20);
|
||||
fill_image(image,color);
|
||||
set_alpha(image, color.alpha / 255.0);
|
||||
set_alpha(image, color.Alpha() / 255.0);
|
||||
message->bitmap = wxBitmap(image);
|
||||
} else {
|
||||
message->text = result->toCode();
|
||||
|
||||
@@ -517,7 +517,7 @@ const Image& SymbolPartList::itemPreview(int i, const SymbolPartP& part) {
|
||||
}
|
||||
const Image& SymbolPartList::symbolPreview() {
|
||||
if (!symbol_preview.up_to_date) {
|
||||
SolidFillSymbolFilter filter(AColor(0,0,0,40), AColor(255,255,255,40));
|
||||
SolidFillSymbolFilter filter(Color(0,0,0,40), Color(255,255,255,40));
|
||||
Image img = render_symbol(symbol, filter, 0.06, ITEM_HEIGHT * 4);
|
||||
resample(img, symbol_preview.image);
|
||||
symbol_preview.up_to_date = true;
|
||||
|
||||
Reference in New Issue
Block a user