Skip to content

Commit

Permalink
enable startscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanJakobo committed Sep 20, 2021
1 parent 4d9d4d2 commit 50ce398
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ EventHandler *events = nullptr;
*/
int Inkview_handler(int type, int par1, int par2)
{
//Log::writeInfoLog(std::to_string(type));
//Log::writeInfoLog("PB event " + std::to_string(type));
switch (type)
{
case EVT_INIT:
Expand Down Expand Up @@ -53,12 +53,12 @@ int main()


//draw startscreen
//auto textHeight = ScreenHeight() / 30;
//auto startscreenFont = OpenFont("LiberationMono", textHeight, FONT_BOLD);
//SetFont(startscreenFont, BLACK);
//DrawTextRect(0, (ScreenHeight() / 3) * 2, ScreenWidth(), textHeight, "Text Editor", ALIGN_CENTER);
//CloseFont(startscreenFont);
//FullUpdate();
auto textHeight = ScreenHeight() / 30;
auto startscreenFont = OpenFont("LiberationMono", textHeight, FONT_BOLD);
SetFont(startscreenFont, BLACK);
DrawTextRect(0, (ScreenHeight() / 3) * 2, ScreenWidth(), textHeight, "Text Editor", ALIGN_CENTER);
CloseFont(startscreenFont);
FullUpdate();

InkViewMain(Inkview_handler);
return 0;
Expand Down

0 comments on commit 50ce398

Please sign in to comment.