mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-30 04:20:23 +00:00
Removed support for 8 bpp.
This commit is contained in:
parent
fd21ce52b9
commit
271e1df6bd
@ -356,7 +356,6 @@
|
||||
<screensize width="1920" height="1200" aspect="16:10" />
|
||||
<screensize width="2560" height="1600" aspect="16:10" />
|
||||
|
||||
<colordepth bpp="8" label="8 bpp (256 colors)" />
|
||||
<colordepth bpp="15" label="15 bpp (32K colors)" />
|
||||
<colordepth bpp="16" label="16 bpp (64K colors)" />
|
||||
<colordepth bpp="24" label="24 bpp (16M colors)" />
|
||||
|
@ -85,7 +85,7 @@ static struct
|
||||
{ 320, 200, 1 },
|
||||
{ 0, 0, 0 } };
|
||||
|
||||
static int try_depths[] = { 32, 24, 16, 15, 8 };
|
||||
static int try_depths[] = { 32, 24, 16, 15 };
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -250,11 +250,16 @@ int init_module_gui()
|
||||
if (!bpp) {
|
||||
bpp = desktop_color_depth();
|
||||
if (!bpp)
|
||||
bpp = 8;
|
||||
bpp = 16;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
/* original */
|
||||
if (bpp == 8) {
|
||||
allegro_message("You cannot use aseprite in 8 bits per pixel\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Original
|
||||
set_color_depth(bpp);
|
||||
if (set_gfx_mode(autodetect, w, h, 0, 0) == 0)
|
||||
break;
|
||||
@ -268,7 +273,7 @@ int init_module_gui()
|
||||
}
|
||||
}
|
||||
|
||||
if (bpp == 8) {
|
||||
if (bpp == 15) {
|
||||
user_printf(_("Error setting graphics mode\n%s\n"
|
||||
"Try \"ase -res WIDTHxHEIGHTxBPP\"\n"), allegro_error);
|
||||
return -1;
|
||||
@ -403,6 +408,10 @@ static void load_gui_config(int& w, int& h, int& bpp, bool& fullscreen, bool& ma
|
||||
#else
|
||||
maximized = false;
|
||||
#endif
|
||||
|
||||
// Avoid 8 bpp
|
||||
if (bpp == 8)
|
||||
bpp = 32;
|
||||
}
|
||||
|
||||
static void save_gui_config()
|
||||
|
Loading…
x
Reference in New Issue
Block a user