mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-27 06:35:16 +00:00
Merge branch '1.0' of github.com:aseprite/aseprite into 1.0
This commit is contained in:
commit
4358989633
@ -86,7 +86,7 @@ Color Color::fromIndex(int index)
|
||||
// static
|
||||
Color Color::fromImage(PixelFormat pixelFormat, color_t c)
|
||||
{
|
||||
Color color = Color::fromMask();
|
||||
Color color = app::Color::fromMask();
|
||||
|
||||
switch (pixelFormat) {
|
||||
|
||||
@ -124,7 +124,7 @@ Color Color::fromImageGetPixel(Image *image, int x, int y)
|
||||
// static
|
||||
Color Color::fromString(const std::string& str)
|
||||
{
|
||||
Color color = Color::fromMask();
|
||||
Color color = app::Color::fromMask();
|
||||
|
||||
if (str != "mask") {
|
||||
if (str.find("rgb{") == 0 ||
|
||||
|
@ -93,6 +93,7 @@ template<typename ImageTraits>
|
||||
static inline bool color_equal(color_t c1, color_t c2, int tolerance)
|
||||
{
|
||||
static_assert(false && sizeof(ImageTraits), "Invalid color comparison");
|
||||
return false;
|
||||
}
|
||||
|
||||
template<>
|
||||
|
@ -39,6 +39,7 @@ namespace {
|
||||
template<typename ImageTraits, int color_depth>
|
||||
int convert_color_to_allegro(color_t color, const Palette* palette) {
|
||||
static_assert(false && sizeof(ImageTraits), "Invalid color conversion");
|
||||
return 0;
|
||||
}
|
||||
|
||||
template<>
|
||||
|
@ -42,6 +42,7 @@ namespace {
|
||||
template<typename ImageTraits, she::SurfaceFormat format>
|
||||
uint32_t convert_color_to_surface(color_t color, const Palette* palette, const she::SurfaceFormatData* fd) {
|
||||
static_assert(false && sizeof(ImageTraits), "Invalid color conversion");
|
||||
return 0;
|
||||
}
|
||||
|
||||
template<>
|
||||
|
Loading…
x
Reference in New Issue
Block a user