mirror of
https://github.com/arabine/open-story-teller.git
synced 2025-12-06 17:09:06 +01:00
30 lines
438 B
C++
30 lines
438 B
C++
#include "mainwindow.h"
|
|
#include <iostream>
|
|
#include <QApplication>
|
|
|
|
MainWindow *w_ptr = nullptr;
|
|
|
|
extern "C" void ost_display_draw_h_line(uint16_t y, uint8_t *pixels, uint8_t *palette)
|
|
{
|
|
if (w_ptr != nullptr)
|
|
{
|
|
w_ptr->draw_line(y, pixels, palette);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
|
|
MainWindow w;
|
|
|
|
w_ptr = &w;
|
|
|
|
w.startTest();
|
|
|
|
w.show();
|
|
return a.exec();
|
|
}
|