Skip to content

Commit 55c1113

Browse files
author
Lauren McCarthy
committed
docs
1 parent c56af44 commit 55c1113

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/environment/environment.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,14 @@ define(function(require) {
324324
}
325325
};
326326

327-
/*
328-
* Disables scaling for retina display. By default, the pixels
329-
* are scaled for the display.
327+
/**
328+
* If argument is given, sets the sketch to fullscreen or not based on the
329+
* value of the argument. If no argument is given, returns the current
330+
* fullscreen state. Note that due to browser restrictions this can only
331+
* be called on user input, for example, on mouse press like the example
332+
* below.
330333
*
331334
* @method devicePixelScaling
332-
* @param {Boolean} val whether the sketch should be scaled or not
333335
* @example
334336
* <div>
335337
* <code>

0 commit comments

Comments
 (0)