mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-17 17:42:51 +00:00
Remove allegro.h in app.cpp
This commit is contained in:
parent
ddaacd2f7b
commit
483878140a
@ -73,8 +73,6 @@
|
||||
#include "ui/intern.h"
|
||||
#include "ui/ui.h"
|
||||
|
||||
|
||||
#include <allegro.h>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <stdarg.h>
|
||||
@ -83,10 +81,6 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifdef ALLEGRO_WINDOWS
|
||||
#include <winalleg.h>
|
||||
#endif
|
||||
|
||||
namespace app {
|
||||
|
||||
using namespace ui;
|
||||
@ -211,9 +205,6 @@ int App::run()
|
||||
UIContext::instance()->setActiveView(NULL);
|
||||
}
|
||||
|
||||
// Set background mode for non-GUI modes
|
||||
set_display_switch_mode(SWITCH_BACKGROUND);
|
||||
|
||||
// Procress options
|
||||
PRINTF("Processing options...\n");
|
||||
|
||||
@ -370,8 +361,6 @@ void App::showNotification(INotificationDelegate* del)
|
||||
// Updates palette and redraw the screen.
|
||||
void app_refresh_screen()
|
||||
{
|
||||
ASSERT(screen != NULL);
|
||||
|
||||
Context* context = UIContext::instance();
|
||||
ASSERT(context != NULL);
|
||||
|
||||
@ -399,8 +388,6 @@ PixelFormat app_get_current_pixel_format()
|
||||
Document* document = context->activeDocument();
|
||||
if (document != NULL)
|
||||
return document->sprite()->pixelFormat();
|
||||
else if (screen != NULL && bitmap_color_depth(screen) == 8)
|
||||
return IMAGE_INDEXED;
|
||||
else
|
||||
return IMAGE_RGB;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user