mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-09 18:44:46 +00:00
Fix test.h for GUI tests. Jinete class instance is needed.
This commit is contained in:
parent
75689ef990
commit
c4017a24e0
@ -31,22 +31,27 @@
|
||||
// Allegro-friendly main() routine
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
int exitcode;
|
||||
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
allegro_init();
|
||||
|
||||
#ifdef TEST_GUI
|
||||
set_color_depth(desktop_color_depth());
|
||||
set_gfx_mode(GFX_AUTODETECT_WINDOWED, 256, 256, 0, 0);
|
||||
install_timer();
|
||||
install_keyboard();
|
||||
install_mouse();
|
||||
|
||||
Widget* manager = jmanager_new();
|
||||
{
|
||||
Jinete jinete;
|
||||
Widget* manager = jmanager_new();
|
||||
#endif
|
||||
|
||||
int exitcode = RUN_ALL_TESTS();
|
||||
exitcode = RUN_ALL_TESTS();
|
||||
|
||||
#ifdef TEST_GUI
|
||||
jmanager_free(manager);
|
||||
jmanager_free(manager);
|
||||
}
|
||||
#endif
|
||||
|
||||
allegro_exit();
|
||||
|
Loading…
x
Reference in New Issue
Block a user