mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-28 16:11:35 +00:00
Minor changes: remove more unnecessary references to allegro.h
This commit is contained in:
parent
21e700da4f
commit
ed67ee0d59
@ -26,11 +26,9 @@
|
||||
#include "app/resource_finder.h"
|
||||
#include "ui/base.h"
|
||||
|
||||
#include <allegro/file.h>
|
||||
#include <allegro/unicode.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <cstdarg>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
|
||||
namespace app {
|
||||
|
@ -58,14 +58,11 @@
|
||||
#include "ui/ui.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <allegro.h>
|
||||
#include <allegro/internal/aintern.h>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
#ifdef ALLEGRO_WINDOWS
|
||||
#include <winalleg.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#define SPRITEDITOR_ACTION_COPYSELECTION "CopySelection"
|
||||
@ -243,9 +240,6 @@ void exit_module_gui()
|
||||
CurrentTheme::set(NULL);
|
||||
delete ase_theme;
|
||||
|
||||
remove_keyboard();
|
||||
remove_mouse();
|
||||
|
||||
main_clipboard->dispose();
|
||||
main_display->dispose();
|
||||
}
|
||||
@ -266,7 +260,6 @@ static void save_gui_config()
|
||||
set_config_bool("GfxMode", "Maximized", display->isMaximized());
|
||||
set_config_int("GfxMode", "Width", display->originalWidth());
|
||||
set_config_int("GfxMode", "Height", display->originalHeight());
|
||||
set_config_int("GfxMode", "Depth", bitmap_color_depth(screen));
|
||||
}
|
||||
set_config_int("GfxMode", "ScreenScale", screen_scaling);
|
||||
}
|
||||
|
@ -42,7 +42,6 @@
|
||||
#include "ui/system.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <allegro/color.h>
|
||||
#include <string>
|
||||
|
||||
#define DEFAULT_ONIONSKIN_TYPE Onionskin_Merge
|
||||
|
@ -61,7 +61,6 @@
|
||||
#include "she/system.h"
|
||||
#include "ui/ui.h"
|
||||
|
||||
#include <allegro.h>
|
||||
#include <cstdio>
|
||||
|
||||
namespace app {
|
||||
|
@ -30,8 +30,6 @@
|
||||
#include "ui/system.h"
|
||||
#include "ui/view.h"
|
||||
|
||||
#include <allegro/color.h>
|
||||
|
||||
namespace app {
|
||||
|
||||
using namespace ui;
|
||||
|
@ -30,7 +30,8 @@
|
||||
#include "ui/ui.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <allegro.h>
|
||||
#include <cctype>
|
||||
#include <cstring>
|
||||
|
||||
#define ISEARCH_KEYPRESS_INTERVAL_MSECS 500
|
||||
|
||||
@ -245,8 +246,8 @@ bool FileList::onProcessMessage(Message* msg)
|
||||
|
||||
default:
|
||||
if (unicodeChar == ' ' ||
|
||||
(utolower(unicodeChar) >= 'a' &&
|
||||
utolower(unicodeChar) <= 'z') ||
|
||||
(std::tolower(unicodeChar) >= 'a' &&
|
||||
std::tolower(unicodeChar) <= 'z') ||
|
||||
(unicodeChar >= '0' &&
|
||||
unicodeChar <= '9')) {
|
||||
if (ui::clock() - m_isearchClock > ISEARCH_KEYPRESS_INTERVAL_MSECS)
|
||||
@ -260,9 +261,9 @@ bool FileList::onProcessMessage(Message* msg)
|
||||
|
||||
for (i=MAX(select, 0); i<bottom; ++i, ++link) {
|
||||
IFileItem* fi = *link;
|
||||
if (ustrnicmp(fi->getDisplayName().c_str(),
|
||||
m_isearch.c_str(),
|
||||
chrs) == 0) {
|
||||
if (strnicmp(fi->getDisplayName().c_str(),
|
||||
m_isearch.c_str(),
|
||||
chrs) == 0) {
|
||||
select = i;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user