Minor changes: remove more unnecessary references to allegro.h

This commit is contained in:
David Capello 2014-09-21 12:18:01 -03:00
parent 21e700da4f
commit ed67ee0d59
6 changed files with 12 additions and 24 deletions

View File

@ -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 {

View File

@ -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);
}

View File

@ -42,7 +42,6 @@
#include "ui/system.h"
#include <algorithm>
#include <allegro/color.h>
#include <string>
#define DEFAULT_ONIONSKIN_TYPE Onionskin_Merge

View File

@ -61,7 +61,6 @@
#include "she/system.h"
#include "ui/ui.h"
#include <allegro.h>
#include <cstdio>
namespace app {

View File

@ -30,8 +30,6 @@
#include "ui/system.h"
#include "ui/view.h"
#include <allegro/color.h>
namespace app {
using namespace ui;

View File

@ -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,7 +261,7 @@ bool FileList::onProcessMessage(Message* msg)
for (i=MAX(select, 0); i<bottom; ++i, ++link) {
IFileItem* fi = *link;
if (ustrnicmp(fi->getDisplayName().c_str(),
if (strnicmp(fi->getDisplayName().c_str(),
m_isearch.c_str(),
chrs) == 0) {
select = i;