clay screen res
This commit is contained in:
@@ -7,6 +7,7 @@ var draw = use('prosperon/draw2d')
|
||||
var graphics = use('graphics')
|
||||
var util = use('util')
|
||||
var input = use('input')
|
||||
var prosperon = use('prosperon')
|
||||
|
||||
function normalizeSpacing(spacing) {
|
||||
if (typeof spacing == 'number') {
|
||||
@@ -50,8 +51,9 @@ var focused_textbox = null
|
||||
clay.behave = layout.behave;
|
||||
clay.contain = layout.contain;
|
||||
|
||||
clay.draw = function draw(size, fn, config = {})
|
||||
clay.draw = function draw(fn)
|
||||
{
|
||||
size = [prosperon.logical.x, prosperon.logical.y]
|
||||
lay_ctx.reset();
|
||||
boxes = [];
|
||||
var root = lay_ctx.item();
|
||||
@@ -67,7 +69,7 @@ clay.draw = function draw(size, fn, config = {})
|
||||
id:root,
|
||||
config:root_config
|
||||
});
|
||||
fn();
|
||||
|
||||
lay_ctx.run();
|
||||
|
||||
// Adjust bounding boxes for padding
|
||||
|
||||
Reference in New Issue
Block a user