mirror of https://github.com/buggins/dlangui.git
fix compilation with freetype
This commit is contained in:
parent
baecfc2216
commit
d5dff418fe
|
@ -34,10 +34,10 @@ private struct FontDef {
|
|||
_italic = italic;
|
||||
_weight = weight;
|
||||
}
|
||||
const bool opEquals(ref const FontDef v) {
|
||||
bool opEquals(ref const FontDef v) const {
|
||||
return _family == v._family && _italic == v._italic && _weight == v._weight && _face.equal(v._face);
|
||||
}
|
||||
const hash_t toHash() const nothrow @safe {
|
||||
hash_t toHash() const nothrow @safe {
|
||||
hash_t res = 123;
|
||||
res = res * 31 + cast(hash_t)_italic;
|
||||
res = res * 31 + cast(hash_t)_weight;
|
||||
|
|
Loading…
Reference in New Issue