I am tryng to write a program which is compatible for Windows & LinuxMint
the Windows system works fine with the following
sys "GetSystemMetrics", 0 to ScrW%
sys "GetSystemMetrics", 1 to ScrH%
but LinuxMint does not recognise the function
is there an alternative that I can use with LinuxMint
ihsgut@gmail.com
For Linuxmint alt to sys "GetSystemMetrics", 0 to ScrW% & 1 to ScrH%
-
- Posts: 2
- Joined: Thu 17 Apr 2025, 10:24
-
- Posts: 325
- Joined: Tue 18 Jun 2024, 09:32
Re: For Linuxmint alt to sys "GetSystemMetrics", 0 to ScrW% & 1 to ScrH%
This should work (it's documented here):
Code: Select all
DIM rc{x%, y%, w%, h%}
SYS "SDL_GetDisplayUsableBounds", 0, rc{}, @memhdc%
ScrW% = rc.w%
ScrH% = rc.h%
Code: Select all
DIM rc{x%, y%, w%, h%}
SYS "SDL_GetDisplayBounds", 0, rc{}, @memhdc%
ScrW% = rc.w%
ScrH% = rc.h%
-
- Posts: 2
- Joined: Thu 17 Apr 2025, 10:24
Re: For Linuxmint alt to sys "GetSystemMetrics", 0 to ScrW% & 1 to ScrH%
I must say Thankyou for your prompt response to my issue which is now solved
Thanx , Thanx & Thanx again!!!!
ihsgut@gmail.com
Thanx , Thanx & Thanx again!!!!
ihsgut@gmail.com