comparison postdog/main.c @ 58:ccb42d5bf8fd

[PostDog] Somewhat working copy. That would use for testing.
author June Park <parkjune1995@gmail.com>
date Sat, 20 Dec 2025 09:33:15 -0800
parents d4cdb87212fb
children fff1b048dda6
comparison
equal deleted inserted replaced
57:d4cdb87212fb 58:ccb42d5bf8fd
6 #include <string.h> 6 #include <string.h>
7 #include <time.h> 7 #include <time.h>
8 #include <sys/stat.h> 8 #include <sys/stat.h>
9 #include <dirent.h> 9 #include <dirent.h>
10 10
11
11 // third party 12 // third party
12 #include <curl/curl.h> 13 #include <curl/curl.h>
13 #include "third_party/raylib/include/raylib.h" 14 #include "third_party/raylib/include/raylib.h"
14 #define RAYGUI_IMPLEMENTATION 15 #define RAYGUI_IMPLEMENTATION
15 #include "third_party/raylib/include/raygui.h" 16 #include "third_party/raylib/include/raygui.h"
548 { 549 {
549 DrawText("No requests yet", historyArea.x + 5, historyArea.y + 25, 10, DARKGRAY); 550 DrawText("No requests yet", historyArea.x + 5, historyArea.y + 25, 10, DARKGRAY);
550 } 551 }
551 else 552 else
552 { 553 {
553 int item_y_position = historyArea.y + 5 - (int)historyScroll.y; 554 int item_y_position = historyArea.y + SIDEBAR_AREA_PADDING_Y + 5 - (int)historyScroll.y;
554 for ( 555 for (
555 int current_history_item_number = 0; 556 int current_history_item_number = 0;
556 current_history_item_number < historyCount; 557 current_history_item_number < historyCount;
557 current_history_item_number++ 558 current_history_item_number++
558 ) 559 )