ladybird/Kernel/Graphics
Liav A 9bec9c2b78 Kernel: Force y offset 0 when switching between console & graphics modes
This fixes a weird bug that when sometimes a user tried to switch to
console mode, the screen was frozen on graphics mode. After a hour of
debugging this, it became apparent that the problem was that we left the
y offset of the bochs graphics device in an invalid state, so it was not
zero because the WindowServer changed it, and the framebuffer console
code is not aware of horizontal and vertical offsets of the framebuffer
screen, leading to the problem that the framebuffer console updates the
first framebuffer (y offset = 0), but hardware was indicated to show the
second framebuffer (y offset = first framebuffer height).

Therefore, when doing a switch between these modes, always set the y
offset to be zero.
2022-05-06 18:05:14 +02:00
..
Bochs Kernel/Graphics: Simplify the GenericGraphicsAdapter class 2022-05-05 20:55:57 +02:00
Console Kernel/Graphics: Implement basic cursor for FramebufferConsole 2022-05-06 12:28:02 +02:00
Intel Kernel/Graphics: Simplify the GenericGraphicsAdapter class 2022-05-05 20:55:57 +02:00
VGA Kernel/Graphics: Simplify the GenericGraphicsAdapter class 2022-05-05 20:55:57 +02:00
VirtIOGPU Kernel/Graphics: Simplify the GenericGraphicsAdapter class 2022-05-05 20:55:57 +02:00
VMWare Kernel/Graphics: Implement basic support for VMWare SVGA adapter 2022-05-06 18:04:57 +02:00
Definitions.h Kernel: Add ioctl to get the EDID from a framebuffer 2022-01-23 22:45:21 +00:00
DisplayConnector.cpp Kernel: Force y offset 0 when switching between console & graphics modes 2022-05-06 18:05:14 +02:00
DisplayConnector.h Kernel/Graphics: Introduce the DisplayConnector class 2022-05-05 20:55:57 +02:00
GenericGraphicsAdapter.h Kernel/Graphics: Simplify the GenericGraphicsAdapter class 2022-05-05 20:55:57 +02:00
GraphicsManagement.cpp Kernel/Graphics: Protect the list of display connectors with a Spinlock 2022-05-06 18:05:14 +02:00
GraphicsManagement.h Kernel/Graphics: Protect the list of display connectors with a Spinlock 2022-05-06 18:05:14 +02:00