Explorar el Código

CTRLPainter will now update image when current palette color is changed.

dev-bank
Bryan Miller hace 6 años
padre
commit
44a568a401
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. +7
    -0
      app/js/ctrls/CTRLPainter.js

+ 7
- 0
app/js/ctrls/CTRLPainter.js Ver fichero

@@ -170,8 +170,15 @@ class CTRLPainter {
}).bind(this);
GlobalEvents.listen("resize", handle_resize);

var handle_palinfochanged = (function(pdat){
RenderD();
}).bind(this);

var handle_setapppalette = (function(pal){
if (this.__palette !== null)
this.__palette.unlisten("palettes_changed", handle_palinfochanged);
this.__palette = pal;
this.__palette.listen("palettes_changed", handle_palinfochanged);
if (this.__surface !== null){
this.__surface.palette = pal;
if (this.__onePaletteMode === false)

Cargando…
Cancelar
Guardar