Skip to content

Commit

Permalink
deploy: cc80f7c
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Nov 9, 2024
1 parent 986e101 commit 5e1a53c
Show file tree
Hide file tree
Showing 24 changed files with 3,675 additions and 3,671 deletions.
10 changes: 6 additions & 4 deletions RGFW.h
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ RGFW_window* RGFW_window_basic_init(RGFW_rect rect, u16 args) {
void RGFW_window_scaleToMonitor(RGFW_window* win) {
RGFW_monitor monitor = RGFW_window_getMonitor(win);

RGFW_window_resize(win, RGFW_AREA((u32)(monitor.scaleX * (float)win->r.w), (u32)(monitor.scaleX * (float)win->r.h)));
RGFW_window_resize(win, RGFW_AREA((u32)(monitor.scaleX * (float)win->r.w), (u32)(monitor.scaleY * (float)win->r.h)));
}
#endif

Expand Down Expand Up @@ -3766,10 +3766,10 @@ Start of Linux / Unix defines
monitor.scaleX = (float) (dpi_width) / (float) 96;
monitor.scaleY = (float) (dpi_height) / (float) 96;

if (monitor.scaleX > 1 && monitor.scaleX < 1.1)
if (isinf(monitor.scaleX) || (monitor.scaleX > 1 && monitor.scaleX < 1.1))
monitor.scaleX = 1;

if (monitor.scaleY > 1 && monitor.scaleY < 1.1)
if (isinf(monitor.scaleY) || (monitor.scaleY > 1 && monitor.scaleY < 1.1))
monitor.scaleY = 1;

XRRFreeCrtcInfo(ci);
Expand Down Expand Up @@ -5276,7 +5276,9 @@ RGFW_UNUSED(win); /*!< if buffer rendering is not being used */
if (RGFW_Shcore_dll == NULL) {
RGFW_Shcore_dll = LoadLibraryA("shcore.dll");
GetDpiForMonitorSRC = (PFN_GetDpiForMonitor)(void*)GetProcAddress(RGFW_Shcore_dll, "GetDpiForMonitor");
SetProcessDPIAware();
#if defined(_WIN64) || (_WIN32_WINNT >= 0x0600)
SetProcessDPIAware();
#endif
}
#endif

Expand Down
Binary file modified RGFW.o
Binary file not shown.
7,298 changes: 3,650 additions & 3,648 deletions docs/RGFW_8h_source.html

Large diffs are not rendered by default.

Binary file modified libRGFW.a
Binary file not shown.
Binary file modified libRGFW.so
Binary file not shown.
2 changes: 1 addition & 1 deletion man/man3/Callbacks.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "Callbacks" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "Callbacks" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/Clipboard.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "Clipboard" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "Clipboard" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/Input.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "Input" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "Input" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/Monitor.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "Monitor" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "Monitor" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/README.md.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "README.md" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "README.md" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/RGFW.h.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "RGFW.h" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "RGFW.h" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/RGFW_Event.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "RGFW_Event" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "RGFW_Event" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/RGFW_area.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "RGFW_area" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "RGFW_area" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/RGFW_monitor.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "RGFW_monitor" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "RGFW_monitor" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/RGFW_point.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "RGFW_point" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "RGFW_point" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/RGFW_rect.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "RGFW_rect" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "RGFW_rect" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/RGFW_window.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "RGFW_window" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "RGFW_window" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/RGFW_window_src.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "RGFW_window_src" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "RGFW_window_src" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/Supporting.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "Supporting" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "Supporting" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/Threads.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "Threads" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "Threads" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/Window_management.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "Window_management" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "Window_management" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/graphics_API.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "graphics_API" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "graphics_API" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/joystick.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "joystick" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "joystick" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion man/man3/md_README.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "md_README" 3 "Sun Nov 3 2024" "RGFW" \" -*- nroff -*-
.TH "md_README" 3 "Sat Nov 9 2024" "RGFW" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Expand Down

0 comments on commit 5e1a53c

Please sign in to comment.