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