mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:27:35 +00:00
Build Painter & friends into LibC. Use it in the GUI test app.
This commit is contained in:
parent
bfef4afa6a
commit
b673c1a77d
16 changed files with 105 additions and 50 deletions
|
@ -111,6 +111,8 @@ int Process::gui$invalidate_window(int window_id)
|
|||
if (it == m_windows.end())
|
||||
return -EBADWINDOW;
|
||||
auto& window = *(*it).value;
|
||||
// FIXME: This should queue up a message that the window server process can read.
|
||||
// Poking into its data structures is not good.
|
||||
WindowManager::the().invalidate(window);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ static void debugger_putch(char*&, char ch)
|
|||
IO::out8(0xe9, ch);
|
||||
}
|
||||
|
||||
int dbgprintf(const char* fmt, ...)
|
||||
extern "C" int dbgprintf(const char* fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
#include <AK/Compiler.h>
|
||||
|
||||
extern "C" {
|
||||
int dbgprintf(const char *fmt, ...);
|
||||
int kprintf(const char *fmt, ...);
|
||||
int ksprintf(char* buf, const char *fmt, ...);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue