1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

Build Painter & friends into LibC. Use it in the GUI test app.

This commit is contained in:
Andreas Kling 2019-01-14 20:00:42 +01:00
parent bfef4afa6a
commit b673c1a77d
16 changed files with 105 additions and 50 deletions

View file

@ -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;
}

View file

@ -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);

View file

@ -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, ...);
}