Skip to content

Commit

Permalink
Fetcher: Use a CONST for the window struct size
Browse files Browse the repository at this point in the history
  • Loading branch information
ry755 committed Oct 2, 2023
1 parent 5b49163 commit c2960e8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion applications/fetcher/About.okm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MODULE About;
IMPORT OS;

VAR aboutRunning: CHAR;
aboutWindow: ARRAY 36 OF CHAR;
aboutWindow: ARRAY WINDOW_STRUCT_SIZE OF CHAR;

PROCEDURE AboutMain();
BEGIN
Expand Down
2 changes: 1 addition & 1 deletion applications/fetcher/Browser.okm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MODULE Browser;
IMPORT OS, About, Desktop;

VAR browserRunning: CHAR;
browserWindow: ARRAY 36 OF CHAR;
browserWindow: ARRAY WINDOW_STRUCT_SIZE OF CHAR;
browserIcons: ARRAY 12 OF Fox32OSButtonWidget;
browserPage: INT;
browserNumberOfPages: INT;
Expand Down
2 changes: 1 addition & 1 deletion applications/fetcher/Desktop.okm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MODULE Desktop;
IMPORT OS;

VAR desktopRunning: CHAR;
desktopWindow: ARRAY 36 OF CHAR;
desktopWindow: ARRAY WINDOW_STRUCT_SIZE OF CHAR;
desktopIcons: ARRAY 5 OF Fox32OSButtonWidget;

EXTERN diskIcon: ARRAY 1024 OF INT;
Expand Down
2 changes: 2 additions & 0 deletions applications/fetcher/OS.okm
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
(* FIXME: this module should probably be moved somewhere global so all applications can use it *)

MODULE OS;
CONST WINDOW_STRUCT_SIZE = 36;

EXTERN PROCEDURE new_window, destroy_window, draw_str_to_overlay, get_window_overlay_number,
draw_widgets_to_window, draw_filled_rectangle_to_overlay, GetNextWindowEvent, DrawPixel,
save_state_and_yield_task, start_dragging_window, handle_widget_click, fill_window, fill_overlay,
Expand Down

0 comments on commit c2960e8

Please sign in to comment.