Stephan Aßmus
74516f2ac3
added some functions with optimized implementation
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12112 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 01:40:38 +00:00
Axel Dörfler
6e3baa44ff
Fixed a bug in send_signal_etc(): when using the group-wide form (negative
...
process ID), it also searched for a group with a negative ID.
Some minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12111 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 22:00:36 +00:00
Axel Dörfler
29b183b12c
select() doesn't care about obvious user errors: if it's called without
...
any chance to come back (without being signaled), it now will.
For example, this is used by the sleep command (which now actually works
as it should :)).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 21:45:56 +00:00
Adi Oanca
eb6bc5d5ff
Started to implement workspace support. Surprisingly, with this small change changing workspaces actualy works. An it works quite well I may add. :-) So happy the new window manager which I heavily tested actualy works inside app_server. :-)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 21:32:24 +00:00
Adi Oanca
256c1b1502
Insignifican change. Read uint32 instead of int32.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 21:26:35 +00:00
Stephan Aßmus
e33b90ea35
implemented cursor support in the DisplayDriverPainter
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12107 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 18:03:45 +00:00
Stephan Aßmus
31f3fbc45c
moved original cursor stuff into DisplayDriverImpl, now DisplayDriver is pretty much all abstract
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12106 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 18:03:04 +00:00
Michael Lotz
ee897a16b0
Theoretically it should now be possible to open a MiniTerminal
...
with coordinates specified as arguments, but this somehow
(and why ever) does hinder /bin/sh from execution (under R5
at least). If someone could point me to the problem I'd be greatful.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 17:04:50 +00:00
Ingo Weinhold
ebc1161965
Added gdb's bfd and opcodes libraries and gdb itself to the build.
...
Everything compiles here, but I couldn't test it yet, since Haiku
doesn't seem to boot properly at the moment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:59:01 +00:00
Ingo Weinhold
4184510ecb
Jamfile for gdb itself.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12103 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:57:43 +00:00
Ingo Weinhold
f1bb97fc23
Added files generated by configure for x86.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12102 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:57:11 +00:00
Ingo Weinhold
8c9f956b79
Jamfile for gdb's opcodes library.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12101 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:55:55 +00:00
Ingo Weinhold
b33773df35
Generated by configure.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12100 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:55:28 +00:00
Ingo Weinhold
25c32f636c
Jamfile for gdb's bfd library.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:54:45 +00:00
Ingo Weinhold
9231a159cf
Added files generated by configure for x86.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12098 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:54:05 +00:00
Ingo Weinhold
faed617707
Implemented fork() support. We basically need to re-get the heap area
...
after fork()ing and recreate all semaphores we've been using. To do
the latter, we simply maintain a list of all locks.
fork()ing multithreaded teams can still be troublesome.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12097 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:34:20 +00:00
Ingo Weinhold
576c52f8b1
Added the gcc printf format attribute for debug_printf(), so that gcc warns about format/parameter inconsistencies.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12096 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:25:57 +00:00
Ingo Weinhold
adc9b39a23
* Added printing a stack trace in case of a page fault. Must be enabled
...
explicitely when needed.
* Added a ToDo item to _user_resize_area().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12095 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 15:24:33 +00:00
Stephan Aßmus
e0bb2421ea
whoa - how did this even work?
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12094 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 14:29:18 +00:00
Stephan Aßmus
197f82a8fe
sorry, forgot to commit the move of the locking implementation
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12093 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 13:43:39 +00:00
Stephan Aßmus
181a984e2a
implemented the rest of the drawing calls save for Stroke/FillShape, since I would have to ask what kind of data this function is being passed
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12092 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 13:39:35 +00:00
Stephan Aßmus
02ec6ae825
Implemented and tested the color spaces B_RGB16, B_RGB15, B_CMAP8 and B_GRAY8. The trick is this: The Painter based implementation will most likely always use a double buffered approach. I simply made the back buffer, into which Painter draws, always B_RGBA32, while the front buffer can have any other format the drawing backend is supposed to support. In CopyBackToFront, the format conversion is handled. This gets us pretty far without actually doing very much, and I am not even sure if there should/can be a better implementation.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12091 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 13:38:11 +00:00
Stephan Aßmus
c3bfa6fec9
avoid a crash if used without attached buffer
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12090 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 13:33:15 +00:00
Stephan Aßmus
9543470f44
RootLayer thread can busy loop, and with this change, its easier to shoot app_server whereever it hurts most
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 11:13:19 +00:00
Stephan Aßmus
f6939eb1e1
more correct implementation, but still exhibits problems, usage turned off in ViewHWInterface::Invalidate
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 11:11:33 +00:00
Stephan Aßmus
94b3e6bfd0
ignore the pattern passed to the drawing functions, keep using the one from SetDrawData
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12087 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 11:08:10 +00:00
Stephan Aßmus
55a56d8b0e
added fake_input_server.cpp to the build
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12086 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 11:04:44 +00:00
Stephan Aßmus
022badfd34
extracted the fake input_server communication into an extra file used by ViewDriver and ViewHWInterface
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12085 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-28 11:04:00 +00:00
Stephan Aßmus
53115c9920
moved the place of implementation of locking in DisplayDriver, because the Painter version has it elsewhere. the DisplayDriver locking API is now abstract, the same locking is now in DisplayDriverImpl, Painter version uses HWInterface for locking
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 22:02:19 +00:00
Michael Lotz
3c46b74895
Remove debug leftover.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12083 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 21:29:55 +00:00
Michael Lotz
cd970020cb
Implement the BWindow::task_loop again. I know that this is code duplication, but look at
...
the TODO item for an explanation. We could do this as a hack in Looper.cpp though.
Also implement the determine_target function (incomplete).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 21:08:38 +00:00
Ingo Weinhold
4b72d3d8a8
Renamed gawk's libintl.a target to <gawk>libintl.a and placed it in the
...
objects/ tree, so that it doesn't clash with others (those should be
fixed, too). gdb is (or will be, as soon as I check it in) using this
version, too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 20:21:53 +00:00
Michael Lotz
1e29ee2b74
Made it possible to disable PCI module debug output.
...
This speeds up boottime with serial debug enabled.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12080 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 17:00:20 +00:00
Michael Lotz
11356b94e3
Fix Setenv to properly export TERM that commands like clear work too.
...
We use Setenv instead of the native setenv to stay binary compatible with
BeOS, as R5 does not have setenv.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12079 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 16:05:55 +00:00
Michael Lotz
fa78489457
Added a BMessageFilter to catch the B_TAB key (for tab completion).
...
This doesn't work under Haiku yet though.
Also made the thread functions into members of MiniView so that we
can have correct private members.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12078 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 15:47:40 +00:00
Adi Oanca
d9bbe07efa
When the active window (the one who has both, focus and front states) changes, messages are sent to the client side. This makes BWindow::WindowActivated to be called on such am event.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12077 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 13:52:26 +00:00
Adi Oanca
80cbe2b0f3
2 new methods
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12076 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 13:48:30 +00:00
Adi Oanca
2401f93d84
Added FrontWinBorder(). Made FocusWinBorder() and a few other methods inline.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12075 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 12:58:27 +00:00
Adi Oanca
ab88eaf2ad
BWindows are notified when they are moved or resized.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12074 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 12:19:37 +00:00
Adi Oanca
27e3da2fac
BWindow's frame events hooks work now. Frame gets updated on window move/resize.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 12:16:31 +00:00
Adi Oanca
867b420067
get_workspace_windows() new returns true if there was a change in window hierarchy. Improved performance a bit by avoiding an invalidate call.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12072 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 10:51:28 +00:00
Adi Oanca
aa498a5f03
get_workspace_windows() now returns bool
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 10:49:42 +00:00
Adi Oanca
9e358400f5
Sending windows into background works now.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 10:00:37 +00:00
Michael Lotz
2a0a0e9c0a
Add the MiniTerminal to the buildsystem.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12069 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 06:12:25 +00:00
Michael Lotz
160bd2ffca
This is a minimalistic version of a terminal.
...
It can be run under R5 and Haiku (binary compatible) and should work
with the Haiku app_server and input_server.
It gives access to a /bin/sh like a normal terminal, but has no fancy features
like different text encoding support and it cannot even redraw itself when
something else overdraws it.
But it's pretty impressiv that it works so well under Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12068 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 06:11:38 +00:00
Michael Lotz
6109122c9b
Implemented screen to screen blit and cleaned up header.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 05:29:56 +00:00
Michael Lotz
65369afd6d
Implement AS_LAYER_COPY_BITS.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 05:25:59 +00:00
Michael Lotz
f43d1e849d
Implement AS_LAYER_SET_PATTERN.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 04:08:33 +00:00
Michael Lotz
a2a622616f
Some cleanup to make it easier to read.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 03:33:23 +00:00
Michael Lotz
ac13e18b22
The default shear is actually 90.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-27 03:15:34 +00:00