Jump to content

Recommended Posts

Posted

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? 

 

 

Posted

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.
 

Posted

Therefore, this question is necessary: what screen does your PC use?

Posted

Thank you very much for your interest in my problem.

I am using a 40" 4K resolution SmartTV as a screen.

Posted

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))))

 

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...