Vica Posted March 9 Posted March 9 Hi everyone I'm just starting to experiment with Lisp. I downloaded a file that, among other things, is supposed to calculate the cursor size in drawing units. However, it doesn't seem to calculate it correctly. At least on my PC. Can anyone tell me the correct way to calculate it? Quote
GLAVCVS Posted March 10 Posted March 10 Hi Vica. In principle, the cursor size is obtained from system variables such as "VIEWSIZE" and "CURSORSIZE". But there is a factor in that equation that can alter the result: the size and resolution of your screen. Quote
GLAVCVS Posted March 10 Posted March 10 Therefore, this question is necessary: what screen does your PC use? Quote
Vica Posted March 10 Author Posted March 10 Thank you very much for your interest in my problem. I am using a 40" 4K resolution SmartTV as a screen. Quote
GLAVCVS Posted March 12 Posted March 12 This should return the length, in drawing units, of the crosshair from end to end. (* (/ (car (getvar "SCREENSIZE")) 100.0) 10 (/ (getvar 'VIEWSIZE) (cadr (getvar 'SCREENSIZE)))) Quote
GLAVCVS Posted March 12 Posted March 12 Where 'CURSORSIZE' is the cursor size as a percentage of the screen's WIDTH in pixels. 'VIEWSIZE' is the height of the drawing area in drawing units; and SCREENSIZE is the width and height of the screen in pixels. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.