# New version of ScreenDemo.m and Screen.dll

**URL:** <https://psychtoolbox.discourse.group/t/new-version-of-screendemo-m-and-screen-dll/1251>\
**Category:** Uncategorized\
**Created:** [July 19, 2001, 2:15am UTC](https://psychtoolbox.discourse.group/t/new-version-of-screendemo-m-and-screen-dll/1251 "2001-07-19T02:15:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [July 19, 2001, 2:15am UTC](https://psychtoolbox.discourse.group/t/new-version-of-screendemo-m-and-screen-dll/1251/1 "2001-07-19T02:15:11Z")

</div>

I have attached to this message a new version of the ScreenDemo.m and  
another release of SCREEN. ScreenDemo now steps through with key  
presses instead of mouse clicks. This change was made because of the  
GetClicks bug, where GetClicks does not detect mouse clicks after the  
pixel size has been changed using the pixelSize argument to SCREEN  
'OpenWindow'.  
  
The accompanying version of SCREEN fixes these bugs:  
  
-If a one-element matrix was passed as a color argument to SCREEN  
along with a pointer to window with 32-bit pixels, SCREEN mishandled  
the color value. The problem has been fixed.  
  
-SCREEN 'PutImage' did not work correctly with 32 bit pixels. The  
problem has been fixed.  
  
-SCREEN 'GetImage' for 32-bit pixels has been implemented.  
  
-SCREEN 'TextSize' returned values with inverted sign. The values are  
now positive.  
  
  
-- Allen
