# new SCREEN.mex (fixed offscreen bug)

**URL:** <https://psychtoolbox.discourse.group/t/new-screen-mex-fixed-offscreen-bug/1293>\
**Category:** Uncategorized\
**Created:** [July 12, 2000, 12:33am UTC](https://psychtoolbox.discourse.group/t/new-screen-mex-fixed-offscreen-bug/1293 "2000-07-12T00:33:04Z")\
**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 12, 2000, 12:33am UTC](https://psychtoolbox.discourse.group/t/new-screen-mex-fixed-offscreen-bug/1293/1 "2000-07-12T00:33:04Z")

</div>

dear steven  
  
i think i found and fixed the bug you reported with the following   
one-line program:  
 screen(-1,'OpenOffscreenWindow',0,[0 0 512 512]);  
(A temporary rect variable wasn't initialized; the problem only occurred   
with a screenNumber of -1.) Everything seems to work fine now.   
  
Could you try it in your application and let me know?  
  
SCREEN.mex is enclosed.  
  
best  
  
denis
