|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2022 nono project
4: // Licensed under nono-license.txt
5: //
6:
7: //
8: // NEWS のフレームバッファ(予定地)
9: //
10:
11: #pragma once
12:
13: #include "device.h"
1.1.1.2 root 14: #include "textscreen.h"
1.1 root 15:
16: class NewsfbDevice : public Device
17: {
18: using inherited = Device;
19: public:
20: NewsfbDevice();
21: ~NewsfbDevice() override;
22:
23: void ResetHard(bool poweron) override;
24:
25: void Putc(int ch);
26:
27: private:
1.1.1.3 ! root 28: DECLARE_MONITOR_SCREEN(MonitorScreen);
1.1 root 29:
30: TextScreen console {};
31:
1.1.1.2 root 32: Monitor *monitor {};
1.1 root 33: };
34:
1.1.1.3 ! root 35: inline NewsfbDevice *GetNewsfbDevice() {
1.1 root 36: return Object::GetObject<NewsfbDevice>(OBJ_NEWSFB);
37: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.