Skip to content

Commit

Permalink
Fix the tray situation, need to unhardcode the version in the Future
Browse files Browse the repository at this point in the history
  • Loading branch information
valignatev committed Feb 3, 2025
1 parent 1adc58b commit 2b57d38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion linux.jai
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ get_key_name :: (key_scan_code: u32) -> string {
create_window :: (window_x := 0, window_y := 0, parent: Window_Type = None, background_color_rgb := WC.DEFAULT_WINDOW_CREATION_COLOR, wanted_msaa: s32 = WC.DEFAULT_MSAA) -> Window {
width := window_width;
height := window_height;
window_name := "Hitboxer v0.10";
window_name := "Hitboxer v0.11";
if !x_global_display
init_global_display();

Expand Down
4 changes: 2 additions & 2 deletions windows.jai
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ get_dpi_scale :: (window: Window_Type) -> float {
create_window :: () -> Window_Type {
// Windows is very bad at thread-switching by default unless you do this. Sad.
timeBeginPeriod(1);
the_window := create_window(window_width, window_height, "Hitboxer v0.10");
the_window := create_window(window_width, window_height, "Hitboxer v0.11");
// We can't specify style in create_window, so change it afterwards.
// TLDR is that we want a regular window but without an ability to maximize and resize it.
// SetWindowLongPtrW(the_window, GWL_STYLE, WS_VISIBLE | WS_OVERLAPPED | WS_CAPTION | WS_MINIMIZEBOX | WS_SYSMENU);
Expand Down Expand Up @@ -617,7 +617,7 @@ platform_init :: () -> success: bool #must, reason: string {
array_reserve(*_list_of_process_ids, 1000);
_list_of_process_ids.count = 1000;
// TODO: come up with better window class to distinguish us
the_window = FindWindowW(utf8_to_wide("Default Window Class"), utf8_to_wide("Hitboxer",, temp));
the_window = FindWindowW(utf8_to_wide("Default Window Class"), utf8_to_wide("Hitboxer v0.11",, temp));
if the_window {
ShowWindow(the_window, SW_SHOW);
SetForegroundWindow(the_window);
Expand Down

0 comments on commit 2b57d38

Please sign in to comment.