mirror of
https://github.com/MeexReay/poshlostios.git
synced 2025-06-24 02:22:58 +03:00
canvas fix
This commit is contained in:
parent
ee62d9ee17
commit
6c6cc99013
@ -66,8 +66,6 @@
|
|||||||
|
|
||||||
#graphics {
|
#graphics {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ function enableGraphics() {
|
|||||||
graphics_canvas.width = window.innerWidth.toString()
|
graphics_canvas.width = window.innerWidth.toString()
|
||||||
graphics_canvas.height = window.innerHeight.toString()
|
graphics_canvas.height = window.innerHeight.toString()
|
||||||
graphics_context = graphics_canvas.getContext("2d")
|
graphics_context = graphics_canvas.getContext("2d")
|
||||||
graphics_context.fillStyle = "blue";
|
graphics_context.fillStyle = "black";
|
||||||
graphics_context.fillRect(0, 0, graphics_canvas.width, graphics_canvas.height);
|
graphics_context.fillRect(0, 0, graphics_canvas.width, graphics_canvas.height);
|
||||||
document.body.appendChild(graphics_canvas)
|
document.body.appendChild(graphics_canvas)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user