Explorar el Código

support resizing.

Lucas Stadler %!s(int64=12) %!d(string=hace) años
padre
commit
c94d77f3f8
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      js/pixl/public/trixl.html

+ 8 - 0
js/pixl/public/trixl.html

310
				}
310
				}
311
			}
311
			}
312
		});
312
		});
313
314
		window.onresize = function() {
315
			trixl.window.w = window.innerWidth;
316
			trixl.window.h = window.innerHeight;
317
			trixl.stage.width = trixl.window.w;
318
			trixl.stage.height = trixl.window.h;
319
			gl.viewport(0, 0, trixl.window.w, trixl.window.h);
320
		}
313
	</script>
321
	</script>
314
</body>
322
</body>
315
</html>
323
</html>