adamdruppe / arsd

This is a collection of modules that I've released over the years. Most of them stand alone, or have just one or two dependencies in here, so you don't have to download this whole repo.
http://arsd-official.dpldocs.info/arsd.html
531 stars 128 forks source link

simpledisplay.d noproperty premultiply for type arsd.color.Color #286

Closed DustinMorado closed 3 years ago

DustinMorado commented 3 years ago

When I try to compile any of the simpledisplay.d examples I get the following error:

$ dmd color.d simpledisplay.d example.d
simpledisplay.d(12541): Error: no property `premultiply` for type `arsd.color.Color`
simpledisplay.d(12535): Error: no property `unPremultiply` for type `arsd.color.Color`
simpledisplay.d(12562): Error: undefined identifier `unPremultiplyRgba`
simpledisplay.d(12577): Error: undefined identifier `premultiplyBgra`

Even just a simple import errors:

import arsd.simpledisplay;
import std.stdio : writeln;

void main() {
    writeln("hello");
}

This is on Ubuntu 20.04.1 / with DMD 2.096.1 and also on Mac OSX compiled with dmd -L=-L/usr/X11/lib color.d simpledisplay.d example.d

adamdruppe commented 3 years ago

oops i forgot to commit a file when i pushed just a sec

adamdruppe commented 3 years ago

aaah i did commit it, i just didn't git push it.

try it now.

DustinMorado commented 3 years ago

Yes works. Thank you for the very fast correction!