mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
Share GraphicsBitmaps between the windowing server and the client process.
This is pretty cool. :^) GraphicsBitmaps are now mapped into both the server and the client address space (usually at different addresses but that doesn't matter.) Added a GUI syscall for getting a window's backing store, and another one for invalidating a window so that the server redraws it.
This commit is contained in:
parent
b0e3f73375
commit
0c5ecd303c
13 changed files with 139 additions and 46 deletions
|
@ -215,4 +215,18 @@ long atol(const char* str)
|
|||
return atoi(str);
|
||||
}
|
||||
|
||||
|
||||
static unsigned long s_next_rand = 1;
|
||||
|
||||
int rand()
|
||||
{
|
||||
s_next_rand = s_next_rand * 1103515245 + 12345;
|
||||
return((unsigned)(s_next_rand/((RAND_MAX + 1) * 2)) % (RAND_MAX + 1));
|
||||
}
|
||||
|
||||
void srand(unsigned seed)
|
||||
{
|
||||
s_next_rand = seed;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue