~ changed default values for resolution and font

This commit is contained in:
Julian Hinxlage 2019-11-28 12:19:46 +01:00
parent 39a9fd4bbf
commit 4a0b7a5bf1
4 changed files with 6 additions and 5 deletions

View File

@ -36,7 +36,7 @@ namespace vkvm {
} }
auto callEvent(EventType type) -> bool { auto callEvent(EventType type) -> bool {
auto ivt = getInterrupTable(); auto ivt = getInterruptTable();
for(int i = 0; i < impl.interruptEntrysPerEventType;i++){ for(int i = 0; i < impl.interruptEntrysPerEventType;i++){
auto &entry= ivt[type * impl.interruptEntrysPerEventType + i]; auto &entry= ivt[type * impl.interruptEntrysPerEventType + i];
if (entry.pid != 0) { if (entry.pid != 0) {

View File

@ -79,7 +79,7 @@ constexpr int keyboardBufferSize = 16;
auto onSignal(int signalNumber, void(*callback)(int)) -> void; auto onSignal(int signalNumber, void(*callback)(int)) -> void;
auto getInterrupTable() -> InterruptEntry *; auto getInterruptTable() -> InterruptEntry *;
auto getRegisters() -> Registers *; auto getRegisters() -> Registers *;

View File

@ -29,13 +29,14 @@ namespace vkvm {
setForegroundColor(white); setForegroundColor(white);
setRedrawInterval(20);// NOLINT setRedrawInterval(20);// NOLINT
setTimerInterruptInterval(10);// NOLINT setTimerInterruptInterval(10);// NOLINT
setFont(FontType(3,"",0,0));
} }
impl.localMemoryWarn = true; impl.localMemoryWarn = true;
} }
auto registerEvent(EventType type, const std::function<void()> &handler) -> bool { auto registerEvent(EventType type, const std::function<void()> &handler) -> bool {
int signum = SIGUSR1 + impl.eventTable.size(); int signum = SIGUSR1 + impl.eventTable.size();
auto ivt = getInterrupTable(); auto ivt = getInterruptTable();
lockSharedMemory(); lockSharedMemory();
@ -288,7 +289,7 @@ namespace vkvm {
auto getFont() -> FontType { auto getFont() -> FontType {
//TODO(julian): get font properly //TODO(julian): get font properly
return font_1; return FontType(getRegisters()->textMode_font, "", 0, 0);
} }
auto setFont(const FontType &newValue) -> void { auto setFont(const FontType &newValue) -> void {