Commit Graph

12717 Commits

Author SHA1 Message Date
Axel Dörfler
d673482488 Under Haiku, the "stub" driver is called "vesa", so we're trying to use this one.
Note, the special case can go as soon as we've moved the driver over to the new
driver architecture.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13001 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 01:39:14 +00:00
Axel Dörfler
ecc2961bee Fixed warnings and the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 01:23:44 +00:00
Axel Dörfler
9db6e5bc94 Fixed fake_app_server build due to the BPortLink changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12999 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 01:13:38 +00:00
Axel Dörfler
75936a02e4 BPortLink now has a FlushWithReply() method itself.
BPortLink::AttachString() now accepts a length argument, and will no longer
send a terminating null byte; LinkMsgReader::ReadString(), however, will
make sure the string read is null terminated.
Changed client communication code to use FlushWithReply() instead of Flush()
and GetNextReply() - there were many bugs and shortcomings in the code, I
hope I've fixed them all.
Converted ClientFontList.cpp to our coding style (but not completely, the
class members are missing).
Some more cleanup - I hope Adi will adopt our coding style one day!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12998 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 00:36:26 +00:00
Axel Dörfler
750b92faf3 Almost rewrote LinkMsgSender; it's now much cleaner and works better:
- StartMessage() can now get a size to make sure there is enough free space
- if StartMessage() is called with the current message behind a certain
  watermark, the buffer is flushed in order to prevent moving around messages
  in the buffer. The actual value should be tested in real life, though.
- enlarged maximum buffer size to 64k
- fixed bug: could use memcpy() to move overlapping memory around
- added a flag to Flush() that marks messages as needing a reply - the other
  way would be to mark the message "code" to contain this information

Some cleanup in LinkMsgReader.
BPortLink now has most methods as inlines.
The buffer sizes are now declared in a shared header, so that receiver and
sender are always equipped equally.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12997 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 22:36:03 +00:00
Stefano Ceccherini
7475dcdf3a Added an app server command to retrieve the color map. Made some adjustments to SystemPalette.cpp, implemented support for it in BPrivateScreen. Moved get_scs() a bit down to avoid a deadlock. Note that getting the colormap doesn't work due to port capacity limit (?)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 21:32:24 +00:00
Axel Dörfler
62fbf00df8 Added a simple mini test application for BPortLink.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12995 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 19:40:56 +00:00
Jérôme Duval
7e17503e5e removed AddResource
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12994 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 16:21:21 +00:00
Jérôme Duval
18c3ce0778 added a resource parameter to Preference rule
updated Jamfiles to take this into account


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12993 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 16:19:59 +00:00
Jérôme Duval
87763db72b links against our libs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12992 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 14:34:47 +00:00
Jérôme Duval
1992ebb39f links against our libs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12991 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 14:31:09 +00:00
Axel Dörfler
c493c21745 Cleanup only.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12990 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 14:30:50 +00:00
Jérôme Duval
21984f2a72 links against our libs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 14:25:13 +00:00
Jérôme Duval
88c0001344 clean up (now uses our libs, haiku name)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 14:11:42 +00:00
Stefano Ceccherini
4ef10a59e4 Accidentally commented out RestoreFocus().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:58:51 +00:00
Jérôme Duval
3c109b50be links against our libs
added strlcpy.c for r5 build


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:39:13 +00:00
Stefano Ceccherini
fd083d7eed Use the private menu actions defines. Small cleanups.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:35:16 +00:00
Stefano Ceccherini
88da217a0b Added a header with menu actions defines
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12984 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:34:50 +00:00
Stephan Aßmus
d5233162ca removed no longer true stuff and some debug left overs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:30:56 +00:00
Stephan Aßmus
442992bf26 fixed some pretty bad bugs that prevented menus from working (they now do): The BMessage* in AddShortcut is taken in responsibility by the BWindow, so we cannot directly use the message from BMenuItem, the be_app was locked in InitData but never unlocked, it fixes BMenus only working once, and who knows what else it fixes. A little cleanup with _BCmdKey usage, also note that it is inefficient to RemoveItem()s from a list in the destructor of any class using a BList as data container! Simply delete the items and be done with it. The BList destructor will take care of the rest and free its storage in one go.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:19:28 +00:00
Stephan Aßmus
4ece454391 since the bitmap will be filled with content, we can use 0 as flags for the BBitmap constructor, which prevents it from unnecessarily filling with white
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:14:57 +00:00
Stephan Aßmus
8768dcd876 BMenu installed all previously added items each time a new item was added
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12980 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:13:43 +00:00
Jérôme Duval
e068395097 links against our libs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:13:18 +00:00
Stephan Aßmus
0b5938e995 added a TODO comment, I forgot to mention that anything but B_TRUNCATE_END is untested or broken
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:12:43 +00:00
Stephan Aßmus
590fdd3f2d added B_QUIT_REQUESTED message
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:10:45 +00:00
Jérôme Duval
f13db7ba25 links against our libs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:10:15 +00:00
Jérôme Duval
2bc5183d59 links against our libs
multiple symbolspaces deactivated on haiku


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 12:56:00 +00:00
Jérôme Duval
1100b1dd94 links against our libs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 12:48:08 +00:00
Jérôme Duval
f81e9b2072 links against our libs
multiple-symbols is deactivated for Haiku


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12973 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 12:44:27 +00:00
Jérôme Duval
516fd94698 simplified
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 12:43:32 +00:00
Jérôme Duval
fd635ec925 simplified
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12971 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 12:43:06 +00:00
Jérôme Duval
14ea127147 links against our libs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 12:42:31 +00:00
Jérôme Duval
597f9de634 links against our libs
deactivated -fmultiple-symbol-spaces when building for Haiku


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12969 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 12:19:45 +00:00
Jérôme Duval
251060985c links against our libs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 11:45:58 +00:00
Jérôme Duval
bdf74dd16f Expander now links against libbe.so and libtracker.so
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 11:33:14 +00:00
DarkWyrm
47a1e5d189 Implemented the settings functions
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 01:29:12 +00:00
Axel Dörfler
2cafbe7535 Since Bochs 2.2 can finally run the Haiku app_server, it is now enabled
by default. Select "safe mode" in the boot menu to get to the old consoled.
Note, if you're using VESA mode, make sure you run in 32 bit, or the
app_server will crash.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12965 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 00:54:23 +00:00
DarkWyrm
d506d0f84f FBC fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-06 20:17:30 +00:00
DarkWyrm
383050e5a6 Minor tweaks to be able to declare this one done. :)
Removal of the obsolete OpenBeOS namespace
Added header


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-06 19:29:04 +00:00
Axel Dörfler
860b32520c Almost rewrote BDeskbar. Fixed some bugs. Added some ToDo comments - the
functions will currently deadlock when called from within the Deskbar.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-06 14:23:06 +00:00
Stephan Aßmus
457820a6ef quick fix for windows resizing/moving at fractional offsets, fix for bitmap drawing placement, small clean ups
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12961 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-05 22:02:25 +00:00
Axel Dörfler
683be71e08 Added stuff for AddMessage() and _AddMessagePriv() - mostly comments
on what they should.
More cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-05 19:37:05 +00:00
Axel Dörfler
e17b33e56b The window was removing the app_server connection too early, and thus hang in Quit().
Removed the stopConnection() method.
Cleaned up header a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-05 18:57:55 +00:00
DarkWyrm
2e1184a6e4 Undid a change from r12937 to fix building libbe.so
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-05 01:15:26 +00:00
Axel Dörfler
851fc4f198 Private class BAppServerLink now has a global locker, instead of
(ab)using the BApplication lock to synchronize messaging.
Also, it now has one global reply port, that is created on demand,
but never freed - hope this doesn't cause any other trouble.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-04 17:16:49 +00:00
Axel Dörfler
3cd9c86453 Quit() when called from another thread, never posted _QUIT_ to the looper,
and therefore waited indefinitely for its demise.
Run() had the usual "if error != my special error -> everything fine" that
seems to be everywhere in the Application Kit.
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-04 17:13:42 +00:00
Axel Dörfler
a55bbe35a4 Fixed a warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-04 15:31:26 +00:00
Axel Dörfler
a01d14b2db Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-04 15:15:42 +00:00
Stephan Aßmus
6a2575c9d2 fixed resizing of hidden windows
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-04 11:18:30 +00:00
Stephan Aßmus
f9e3895bf2 added tracing to some messages
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-04 11:17:30 +00:00