~ changed default values for resolution and font
This commit is contained in:
parent
39a9fd4bbf
commit
4a0b7a5bf1
@ -21,7 +21,7 @@ namespace vkvm {
|
||||
Color(unsigned char red, unsigned char green, unsigned char blue) noexcept;
|
||||
|
||||
explicit Color(unsigned int hex) noexcept;
|
||||
|
||||
|
||||
auto getRed() -> unsigned char;
|
||||
|
||||
auto getGreen() -> unsigned char;
|
||||
|
@ -36,7 +36,7 @@ namespace vkvm {
|
||||
}
|
||||
|
||||
auto callEvent(EventType type) -> bool {
|
||||
auto ivt = getInterrupTable();
|
||||
auto ivt = getInterruptTable();
|
||||
for(int i = 0; i < impl.interruptEntrysPerEventType;i++){
|
||||
auto &entry= ivt[type * impl.interruptEntrysPerEventType + i];
|
||||
if (entry.pid != 0) {
|
||||
|
@ -79,7 +79,7 @@ constexpr int keyboardBufferSize = 16;
|
||||
auto onSignal(int signalNumber, void(*callback)(int)) -> void;
|
||||
|
||||
|
||||
auto getInterrupTable() -> InterruptEntry *;
|
||||
auto getInterruptTable() -> InterruptEntry *;
|
||||
|
||||
auto getRegisters() -> Registers *;
|
||||
|
||||
|
@ -29,13 +29,14 @@ namespace vkvm {
|
||||
setForegroundColor(white);
|
||||
setRedrawInterval(20);// NOLINT
|
||||
setTimerInterruptInterval(10);// NOLINT
|
||||
setFont(FontType(3,"",0,0));
|
||||
}
|
||||
impl.localMemoryWarn = true;
|
||||
}
|
||||
|
||||
auto registerEvent(EventType type, const std::function<void()> &handler) -> bool {
|
||||
int signum = SIGUSR1 + impl.eventTable.size();
|
||||
auto ivt = getInterrupTable();
|
||||
auto ivt = getInterruptTable();
|
||||
|
||||
lockSharedMemory();
|
||||
|
||||
@ -288,7 +289,7 @@ namespace vkvm {
|
||||
|
||||
auto getFont() -> FontType {
|
||||
//TODO(julian): get font properly
|
||||
return font_1;
|
||||
return FontType(getRegisters()->textMode_font, "", 0, 0);
|
||||
}
|
||||
|
||||
auto setFont(const FontType &newValue) -> void {
|
||||
|
Loading…
Reference in New Issue
Block a user