Commit Graph

49638 Commits

Author SHA1 Message Date
Adrien Destugues 22011f8b6c ARM Atomics: implement __sync_syncronize
GCC doesn't provide an ARM implementation of it. It's easy to write one
for ARMv6 and above, while older archs will need this implemented as a
syscall just like other atomics.
2014-02-23 16:25:34 +01:00
Adrien Destugues faa2d8a95b Don't link the kernel as a shared lib on ARM
We have the same problem as on x86_64: posiiton dependant code isn't
allowed in shared libraries. Since Kernel.so is not used at runtime,
we can use the same hack as on x86_64, and use elfedit to make the
linker think our kernel is a shared library.
2014-02-23 16:23:45 +01:00
Adrien Destugues 81e7f1e992 Fix definition and use of target ASFLAGS.
* ArchitectureRules define a variable named HAIKU_ASFLAGS, so other
Jamfiles can append to it.
* But, TARGET_ASFLAGS was used instead in the single place where we
tried to make use of this (the verdex BoardSetup), and in the As rule
* Moreover, the As rule used $(architecture) instead of
$(TARGET_PACKAGING_ARCH) (I suspect a bogus copypaste?). So, it never
actually made use of the flags

With this working, add the proper flags to the BeagleBoard BoardSetup,
so we implement atomic operations the ARMv7 way (no need to syscall).
This helps with compiling, as the As and Cc/Cpp rules now agree on the
defines and the atomic implementation to use.
2014-02-23 15:50:11 +01:00
John Scipione cbc568498d Flurry: Show a preview... try number two
Also, we are safe to enable direct mode now (it already was)

This is untested due to this screensaver currently crashing but it should
work once #10206 is fixed.

Remove obvious comment in DirectConnected
2014-02-23 04:10:09 -05:00
John Scipione 25952f8e92 Revert "Flurry: Show a preview"
This reverts commit 61935d56e6.
2014-02-23 04:06:43 -05:00
John Scipione 8e727810a7 Gravity: Live update settings and cleanup
Now that this screensaver shows a preview, update the settings live
so that the display updates immediately.

Since this didn't work before this screensaver took a shortcut and only
updated the settings when the saver started.

Some other changes include:
* Update copyright header, add myself to the authors list.
* Convert Particle from using a BList to a BObjectList and remove casts.
* Use switch statement to set particle color that has a default case for blue.
* Initialize member variables to a default value in the constructor.
* Remove Constants.h, the remaining constants are in ConfigView.cpp
* Convert deprecated GroupLayoutBuilder to a LayoutBuilder template instance
* Convert GravitySource from a class to a struct since all members are public.
* Simplify realCount calculation to just a single left shift.
* A bunch of style fixes
  - lots of whitespace fixes
  - rename rect to frame in GravityView and ConfigView
  - reorder the frame parameter first in GravityView and ConfigView
  - curly brace goes on same line as class or struct declaration

This turned out to be a bigger change than I originally intended to make.
2014-02-23 03:50:15 -05:00
John Scipione 60f8c91355 Gravity: Style fix, rename msg parameter to message 2014-02-23 02:16:29 -05:00
John Scipione ed18c89481 Gravity: Show a preview
Also, we are safe to enable direct mode now.
2014-02-23 02:14:09 -05:00
John Scipione 61935d56e6 Flurry: Show a preview
Also, we are safe to enable direct mode now.

This is untested due to this screensaver currently crashing but it should
work once #10206 is fixed.
2014-02-23 02:12:39 -05:00
John Scipione 823781426f GLifeSaver: Show a preview
Also, we are safe to enable direct mode now.
2014-02-23 02:10:18 -05:00
John Scipione 0fb019bbf2 Screensaver: Convert Screensaver to a BDirectWindow
This allows OpenGL screensavers to be able to show a preview.
2014-02-23 02:07:23 -05:00
John Scipione ada2a0a1ef Screensaver: Small style fixes to PreviewView 2014-02-23 02:05:49 -05:00
Jérôme Duval 339e00cc32 Add findutils package for x86 and x86_gcc2. 2014-02-22 18:09:09 +01:00
Jérôme Duval 2811570586 Add findutils package for x86_64. 2014-02-22 15:02:26 +01:00
Adrien Destugues a94260d895 Add less and netcat packages for x86_gcc2
* Waiting for x86 and x86_64 ones before we can remove the built-in
version in Haiku...
2014-02-22 14:59:17 +01:00
Julian Harnath d10ecc2c41 Style fix: add parameter name
* As pointed out by Axel.
2014-02-22 13:51:55 +00:00
Julian Harnath dad49763d8 Disallow copy-construction of BCertificate.
* Prevents accidential creation of multiple instances with
  ownership of same fPrivate.
2014-02-22 13:51:52 +00:00
Jérôme Duval c2d994b00e HaikuImage: activate GL components with mesa feature. 2014-02-22 14:32:10 +01:00
Julian Harnath c99d7ea45c Fix double-free crash in BSecureSocket when cert. verification fails
* BSecureSocket::CertificateVerificationFailed() took a BCertificate
  instance by value as parameter.
  BCertificate deletes internal data in its destructor. Passing an
  object by value creates a copy, so the copy attempted to delete
  the internal data again during its destruction.
  This caused mail_daemon to crash here when it came across a failed
  certificate.

* Fix: pass BCertificate object as reference.
2014-02-22 02:09:55 +00:00
Alexander von Gluck IV 2eccf32862 x86_64: Add latest Mesa packages
* Solves #9362
2014-02-22 01:38:20 +00:00
John Scipione 5e96d7d537 Localize keyboard layout names in Keymap preferences 2014-02-21 20:05:26 -05:00
John Scipione 4e152efced Keymap modifiers: make it a floating window 2014-02-21 17:11:47 -05:00
John Scipione 73ee1578a9 Keymap: Hide/show warning/stop icon views 2014-02-21 17:11:47 -05:00
John Scipione a7b27d4916 Keymap: 80 char limit style fix 2014-02-21 17:11:47 -05:00
John Scipione 528688c0c8 Keymap: Sentence case these pragmas 2014-02-21 17:11:46 -05:00
John Scipione 313b1c624f Keymap: Center Modifier Keys window in main window 2014-02-21 17:11:46 -05:00
John Scipione a44b74d545 Keymap: static functions back to private methods 2014-02-21 17:11:45 -05:00
John Scipione 2943ba1354 Keymap mod keys: Add warning icon.
That shows when the left and right side key roles don't match.
e.g. The left control key has a different key role than the right
control key.

The warning doesn't actually stop you from setting the modifier
keys though.

Add tooltips on the warning and stop icons explaining the
problem.

Also a couple minor style fixes.
2014-02-21 17:11:45 -05:00
Adrien Destugues 64c12b418f Reintroduce BeOS compatible en/decode_base64.
Fixes #8579.
2014-02-21 22:30:18 +01:00
Stephan Aßmus 838c4c8779 PackageInstaller: Fix rewriting paths to system
In BeOS, there was no /boot/system, there as /boot/beos/system. If memory
serves. Fixes install location of GoBe Translators.
2014-02-21 22:11:05 +01:00
Stephan Aßmus 09b0602fff Tracker: Revert not offsetting the text.
It actually looked better before. It completely depends
on the first and last letter of the text whether there is
a pixel too much on the left or right. On average, it
looks better with the offset, since the string width often
includes the spacing needed before the next glyph on the
right, while the string touches the bounding box on the left.
What should be changed is how tight everything is in general,
the selection box should simply extend more outward. But I
don't really feel like diving into that right now.
2014-02-21 09:51:52 +01:00
Stephan Aßmus 06a4c38e3a Tracker: Don't offset text in selection box
Either the offset was a workaround for some BeOS bug or
backwards compatibility (I know of at least a vertical off-by-one
text positioning on BeOS for backwards compatibility reasons), or
the Haiku (FreeType) text rendering simply differs slightly, which
can't be avoided. In any case, relevant here is what looks better.
Should fix #1319.
2014-02-21 09:41:16 +01:00
Alexander von Gluck IV 122d1cddc9 Haiku: Fix posix INT64_C macros on x86_64
* Was causing LLVM to fail to build on x86_64
* Make XINT64 adjust based on architecture like
  config/types.h to ensure these macros match
  uint64 and int64 at all times.
* Resolves #10566
2014-02-21 01:38:54 -06:00
Ingo Weinhold 374cf8c85d Localize keymap names in Keymap preferences 2014-02-20 23:51:38 -05:00
Pawel Dziepak d072da2344 nfs4: Don't flush cache when closing read only share reservation
NFS4 specification requires that modified data has to be flushed before
sending CLOSE request. Our original implementation was stricter than that
by flushing all modified data at each file close. That caused problems
with e.g. Tracker, which likes to periodically open files for read only,
in a situation when there were still asynchronous writes pending
(e.g. large file copied).
2014-02-21 04:53:45 +01:00
Pawel Dziepak b637b72e15 nfs4: Notify listeners when file grows 2014-02-21 04:52:29 +01:00
Pawel Dziepak 90213f44ac nfs4: Fix coding style
No functional change intended.
2014-02-21 04:19:00 +01:00
Pawel Dziepak e1be7a26a4 nfs4: Make sure OpenDirCookie::fSnapshot is properly initialized 2014-02-21 04:19:00 +01:00
Pawel Dziepak afc21e1367 nfs4: Fix gIdMapper resource leak
Mounting another nfs4 volume loses reference to the previous idmapper
service. Thanks Stephan for pointing this out.
2014-02-21 04:19:00 +01:00
John Scipione 6a6d5a80a1 Add decorators to system non-packaged decorator directory
... commented out still for now. BeDecorator is almost ready,
MacDecorator and WinDecorator need a bunch more work still.
2014-02-20 19:31:51 -05:00
John Scipione 14aa801ae9 Update DecorInfo to scan for decorators
Look in system and user packaged and non-packaged decorator directories.
2014-02-20 19:31:49 -05:00
John Scipione b8187adfc7 normalize Jamfiles 2014-02-20 19:31:48 -05:00
John Scipione 125ee2cb57 Update header guards, copyright 2014-02-20 19:31:47 -05:00
John Scipione 5f5f085b42 Update copyright, Be and Win Decorator descs 2014-02-20 19:31:45 -05:00
John Scipione ebf02ff745 Fixup the Mac Decorator, it compiles and works
... but it still needs a lot more work to integrate with S&T.
2014-02-20 19:31:44 -05:00
John Scipione 6f99a609e3 MacDecorator: Give credit and update description
... to Adrien Destugues and DarkWyrm.
2014-02-20 19:31:43 -05:00
John Scipione a8159e3bc6 Give DarkWyrm credit on WinDecorator 2014-02-20 19:31:42 -05:00
John Scipione cfe0652a5e Move Tab code into Decorator and refactor 2014-02-20 19:31:40 -05:00
John Scipione 699dd3e776 Refactor WinDecorator 2014-02-20 19:31:38 -05:00
John Scipione e0cbe1aa5d Refactor BeDecorator 2014-02-20 19:31:37 -05:00