|
|
|
|
|
|
|
|
}).bind(this); |
|
|
}).bind(this); |
|
|
GlobalEvents.listen("resize", handle_resize); |
|
|
GlobalEvents.listen("resize", handle_resize); |
|
|
|
|
|
|
|
|
|
|
|
var handle_palinfochanged = (function(pdat){ |
|
|
|
|
|
RenderD(); |
|
|
|
|
|
}).bind(this); |
|
|
|
|
|
|
|
|
var handle_setapppalette = (function(pal){ |
|
|
var handle_setapppalette = (function(pal){ |
|
|
|
|
|
if (this.__palette !== null) |
|
|
|
|
|
this.__palette.unlisten("palettes_changed", handle_palinfochanged); |
|
|
this.__palette = pal; |
|
|
this.__palette = pal; |
|
|
|
|
|
this.__palette.listen("palettes_changed", handle_palinfochanged); |
|
|
if (this.__surface !== null){ |
|
|
if (this.__surface !== null){ |
|
|
this.__surface.palette = pal; |
|
|
this.__surface.palette = pal; |
|
|
if (this.__onePaletteMode === false) |
|
|
if (this.__onePaletteMode === false) |