Commit Graph

28618 Commits

Author SHA1 Message Date
Stephan Aßmus
86990636d4 Avoid using the heap allocator for most string drawing when reading the command
from the link. My benchmark measuring is inconclusive, the numbers are sometimes
very different. At first sight, it looks like string drawing can be up to
double as fast with this change, but sometimes, the numbers are about the same.
Hm.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29965 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 12:38:15 +00:00
Ingo Weinhold
64f22f3d0d * fs_walk():
- Get the actual node type. This seemed to be the main problem with using
    ntfs -- paths beyond the root directory could not be resolved.
  - Fixed memory leak in case of error.
* Pass node types instead of mode_t's to publish_vnode().
* Automatic white space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 11:37:19 +00:00
Ingo Weinhold
f1fdb02675 Added jamfile for building ntfs for userland.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 11:33:04 +00:00
Oliver Tappe
4e50f1ae68 * Instead of invoking _DrawLines out of the app-server drawing context,
we request the drawing via Invalidate() - this make use of the app-server's
  potential double buffering, whenever that is active. This change reduces 
  flickering in VESA mode considerably.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 11:31:10 +00:00
Axel Dörfler
865dbe341e * This should fix the tcp build when tracing is turned on.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29961 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 09:37:40 +00:00
Oliver Tappe
2da74964c0 fixed two scalability problems that made BTextView perform rather slow
with large contents:
* when searching for tab characters in DrawLine(), we now limit the search 
  to the current line, too (not only the end of the style) - this avoids
  scanning to the end of large contents repeatedly
* there's no need to refresh from the edit location to the end of the
  content in _DoInsertText(), we only need to refresh the part that has
  changed

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 09:00:52 +00:00
Stephan Aßmus
457f9cf840 If you had added Benchmark as a target, your build would have been broken,
because I forgot to add these files in my last commit... sorry.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 08:06:05 +00:00
Jonas Sundström
019f90e634 Setting the escape key as shortcut for the Cancel options of Tracker's dialogs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 23:47:58 +00:00
Rene Gollent
0f617d4476 Fix several cases of forgetting to include libstdc++ in the libs. This allows a successful build of Haiku on gcc4 Haiku, though it's presently unclear to me why this didn't prevent linking on any other platform (gcc2 haiku, and gcc2/4 cross compilers from FBSD had no issues here).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 22:33:53 +00:00
Oliver Tappe
f57313518e * added a test for BTextView which exposes a couple of problems
with large contents


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 22:28:54 +00:00
François Revol
eb0703fac0 Show an explanation alert, and a score total.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 22:28:29 +00:00
François Revol
0fc05339c8 Score 1 point/file, 2 points/dir and -10/symlink...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 22:19:20 +00:00
Stephan Aßmus
0596ce4f66 One can now chose clipping or no clipping (--clipping or -c) and the drawing
mode. The ClippedLineTest is removed, since that was a dup of RandomLines
anyways.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 22:10:21 +00:00
François Revol
224ceba88f Prototype of an absolutely insane game.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 21:56:46 +00:00
Axel Dörfler
7d33b63d40 * Fixed removing a per CPU source.
* Fixed drawing problem when adding a new source, and the draw happened before
  a new value came in.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 21:22:14 +00:00
Axel Dörfler
8e26f38727 * Added a ViewHistory class that stores the current values, so they don't have
to be interpolated everytime. This class also makes sure that the values are
  always from the same offsets, so the flickering is gone.
* Need to use SetMouseEventMask() or else the mouse up will be ignored when
  changing the resolution via dragging the mouse.
* Fixed a bug that prevented the DataHistory data interpolation from working
  correctly.
* The refresh threads are now working at B_URGENT_DISPLAY_PRIORITY, making the
  view updates much more stable with less jitter.
* Removed the draw refresh, and have it always be the same as the value
  refresh.
* Added lower refresh intervals (25, and 75 ms).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 21:05:50 +00:00
Alexandre Deckner
9cfb11a5cf * Make BDragger respect the doc and only archive/unarchive the popup menu when it's a
custom provided one. Incidentally makes #1775 (that i'll reopen in a moment, see r29947) a 
lot less likely to happen for most users since it can now only happen with those 
customized popups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 19:59:53 +00:00
Stephan Aßmus
e18d4a2d06 Patch by Olivier Coursiere: When rebooting, shutdown all the system teams,
most importantly input_server, which then closes the drivers for input devices.
This in turn will do some cleanup. The touch pad driver will then be reset to
act as normal PS/2 mouse, so that OS like BeOS can use it again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 19:04:25 +00:00
Alexandre Deckner
642cc1315d * Fixes a small regression introduced in r29728, don't return B_ERROR if we couldn't lock
the popup's window, in this case the window just closed, so we go on with archiving then.
There's still a (rarely occuring) problem with the unlocking though, probably due to some 
BMenu funkyness, will investigate, left a TODO.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 18:54:15 +00:00
François Revol
1a7cbee5c2 - cleanup
- fix non UTF-8 in comments
- fixed unix priority scaling


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 18:18:27 +00:00
Rene Gollent
dd6ab6242c gcc4 build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 17:53:33 +00:00
Stephan Aßmus
a8ed06f0c1 Patch by Clemens Zeidler:
* Enable the Synaptics driver again.
* After performing the checks for the Synaptics device, issue a reset to avoid
  the device being left in a weird state. This fixes at least the weird mouse
  in VMWare with enabled Synaptics driver. Please report if there are any other
  problems! :-)

Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 17:25:29 +00:00
Jonas Sundström
3b5c46634d Suppress ResizeView (the grey rows & columns view) when entering/leaving fullscreen mode, and when zooming. Its useful only when manually resizing the window. In the other cases it simply flickers by.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 16:56:42 +00:00
Axel Dörfler
64805bb7f0 * Copy keyboard layouts to the image as well.
* I noticed a bit too late that we usually have lower caps folder in our
  repository. Well, if someone complains enough... :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 15:59:08 +00:00
Stephan Aßmus
418ce29089 Make Benchmark pick up the test you want to run from the command line args.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 15:41:41 +00:00
Alexandre Deckner
561b5d977b * Implements enhancement #2829, ie: change the modifier key (now shift) to force identify on
already identified files and change the menu item label accordingly so that the 'feature' is 
not hidden anymore.
 The identification mechanism will probably be automated in the future, forcing 
identification would then become the only use of this menu item.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 15:29:56 +00:00
Oliver Tappe
349a150359 build fix:
* added 'app' private header path such that ServerProtocolStructs.h
  can be found

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 15:13:53 +00:00
Stephan Aßmus
c559a267f7 Argh! Sorry, should have been part of previous commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 15:04:31 +00:00
Stephan Aßmus
12349c7d3d Begun to use structs for the BView<->app_server communication. This makes
the protocoll less prone to errors, reduces possible points of failure and
most importantly, reduces the number of function calls to the link API.
I only know the numbers for StrokeLine(), which I tested via the Benchmark
test app. With this change, drawing random colored and positioned lines
actually doubled in speed. On the BView side, the calls to
ServerLink::Attach() only halfed, while on the app_server side, the number
of calls to ServerLink::Read() is now 1/4th. It will also be worth
investigating why the link stuff is so slow at all. I also optimized
BView::DrawString() a lot in this change, but I don't have any numbers
yet. Some other commands which used multiple Attach()/Read() calls were
also optimized, at least the most important ones. Begin/EndLineArray() was
also pretty bad on the app_server side. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 14:59:43 +00:00
Axel Dörfler
a6354157ca * Moved some stuff in data/etc/ to data/system/data because that's where
they now end up in the image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29936 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 14:55:59 +00:00
Ingo Weinhold
3a28e9bb96 * On construction initialize fLastEventTime with the current system time.
Otherwise when restarting the input server the screen blanker would start
  immediately.
* Automatic white space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 13:49:05 +00:00
Axel Dörfler
433deca87e * Made the 105 key international keyboard the default, since this is probably
more helpful to most people than the 104 key one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 13:30:27 +00:00
Michael Lotz
f81f8ddb90 Fix search+replace error introduced with reworking debug output. This should
fix full/lowspeed devices behind high-speed hubs again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29933 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 13:19:32 +00:00
Jonas Sundström
2db5c7580c Spotted a few left-over occurences of the previous names: TrackerGrep and Tracker Grep. Simplified the About window: Version is no longer essential. Its simply part of Haiku now. The name is more self-explanatory now, so there is no need to explain the purpose of the application in the About window. Removed the mention of myself as the maintainer, as its maintained collectively by Haiku now. Moved myself into the list of contributors, after Oliver Tappe, which I think is chronologically correct. If the primary copyright holder was Haiku and not Matthijs Hollemans, it would have been appropriate to use Haikus BAboutWindow, but alas.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 13:08:42 +00:00
Michael Lotz
c43b256828 It turns out that on some BIOSes even if the handover is signaled as successful,
the BIOS doesn't remove it's SMIs. When then initializing the controller this
would trigger all sorts of stuff and for example freeze the system. We therefore
always force off the SMIs, even if the handover didn't fail.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29931 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 13:04:30 +00:00
Axel Dörfler
afa564ec96 * Made the modifiers sticky when used with the mouse. This greatly improves
changing keymaps this way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 13:02:36 +00:00
Axel Dörfler
6db2be327d * Changed the way the shortcuts are switched: we no longer do the same thing
as BeOS on the right side (that is, switching control and option key), but
  switch control and command there as well.
* As a consequence, the Alt-Gr key will stay where it is when switching the
  shortcuts.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29929 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 13:00:51 +00:00
Axel Dörfler
c21f81c11a bonefish + axeld:
* There was one incorrect check in BufferQueue::Get() that happened because
  the wrong operator was used due to the uint32 cast operator.
* Consequently, we removed the uint32 cast operator, and changed the code
  to deal with this. Fortunately, no other bugs were observed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 12:00:36 +00:00
François Revol
e2238bd923 - fixed hardcoded color in Deskbar replicant.
- fixed transparent pixels in the icon. This could make use of an HVIF one :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 11:02:38 +00:00
François Revol
def8fff107 Replace hardcoded defines by substrings from $(HAIKU_GCC_MACHINE).
OSTYPE is still set to BeOS, I know some scripts check for it... will need to be fixed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 10:51:04 +00:00
François Revol
dc54109d98 Install bash as bash, and symlink sh to it, it's how it's done on other platforms and more logical.
Btw those defines here are x86 only... FIXME


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 09:14:21 +00:00
François Revol
c9c87ba8dc Introduce a BeOSCompatibility OptionalPackage for those why need to demo apps before fixing them, you lazy. :P
Use with caution, it will disappear someday.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 08:57:29 +00:00
Axel Dörfler
c7fe8932fd * _FreeKeys() now also clears the indicator list (so they are no longer copied
each time you load a new layout).
* Fixed the IBM laptop keyboard layout.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 08:55:18 +00:00
Stephan Aßmus
4d16240245 * Should fix the default desktop background (Haiku logo) since the move of the
artwork folder.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 08:41:48 +00:00
Axel Dörfler
c066660256 * Fixed drawing the L-shaped enter key; the clipping was constrained on the
wrong view since I added offscreen drawing.
* Added a description of the keyboard layout language; it's unlikely to
  undergo much changes anymore now.
* Added a few comments for stippi :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 08:34:32 +00:00
Stephan Aßmus
ab89b2f0c9 Patch by Olivier Coursiere: Reset the touchpad mode when closing the device.
Will be useful when (input) devices are closed during shutdown. (app_server
and input_server are never quit during shutdown, so the drivers are not closed
either.) Apparently, the touchpad will remain as configured before, on a soft
reset which confuses for example BeOS, when it's booted after Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 08:18:53 +00:00
Axel Dörfler
9200ccec5a * That must have been a BeOS limitation, at least our kernel sports the same
generic API for each architecture.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29919 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 08:01:23 +00:00
Stephan Aßmus
14cfdab543 Reset the follow mode to "follow none" when instantiating a replicant view.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 07:35:40 +00:00
François Revol
80e1f0e419 Fix error reporting to conform to the POSIX ttyname_r and ttyname.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29917 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 07:34:37 +00:00
Rene Gollent
909dad39fb Mark Flurry as x86-only for now, as other platforms don't yet have a libGL. Thanks again to Urias.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 03:35:59 +00:00