44258 Commits

Author SHA1 Message Date
Philippe Saint-Pierre
53312de5e5 MediaPlayer: Toggling Fullscreen wrongly reset control status
All controls were enabled when toggling fullscreen on and off;
now it recalls the argument last used in SetEnabled() and reuse it
when called in AttachedInWindow() (which occurs in such toggling)

Fixes #8804.
hrev44584
2012-08-25 21:28:10 -04:00
Philippe Saint-Pierre
a70b623a51 FileTypes : IconView for non-applications fixes
IconView is now only setting the icon with BAppFileInfo when the file is an application,
otherwise relies on BNodeInfo. This avoids adding ressources within data files.

The IconView also wasn't populated correctly when used on data files (by opposition to
application binaries).  It now loads the same icon that is shown in Tracker.
hrev44583
2012-08-25 15:06:58 -04:00
Jessica Hamilton
66ddd2d6e9 Move SetMouseEventMask() into MouseDown, where it should be. 2012-08-25 14:12:54 -04:00
Axel Dörfler
c95601d728 Fixed hiding the mouse cursor after going full screen.
* This fixes a regression I introduced in hrev43648; the mouse cursor
  was only being hidden in case the controls were visible (ie. only
  after an extra mouse move in full screen).
hrev44582
2012-08-25 13:57:50 +02:00
Edward Robbins
6912e7dc03 getrlimit with RLIMIT_STACK now returns USER_MAIN_THREAD_STACK_SIZE
Signed-off-by: Rene Gollent <anevilyak@gmail.com>
hrev44581
2012-08-24 18:29:59 -04:00
czeidler
8e80f8cc35 Fix MinSize and PreferredSize. hrev44579 2012-08-24 15:44:13 +12:00
czeidler
0457e3073e Add another working card id. 2012-08-24 15:42:47 +12:00
Fredrik Modéen
0d7b06c318 Updating Firewire.
* Some update from FreeBSD.
hrev44578
2012-08-23 22:37:06 +00:00
Axel Dörfler
c95f35ce9d Fixed 64 bit issue for the buffer descriptor base. hrev44577 2012-08-23 22:01:19 +02:00
Matt Madia
a441887328 Added 'diskimage' to image.
Allows one to register a file as disk, which  can then be mounted.
To note, one application of this is to allow mounting of anyboot images.
Fixes #5578.
hrev44575
2012-08-22 17:51:13 +00:00
Jessica Hamilton
d3668a5473 SoundConsumer.cpp: fix debug macros compiling in release mode
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
hrev44574
2012-08-22 23:49:12 +02:00
John Scipione
91c78f092f Create and use new list view item colors
* B_LIST_BACKGROUND_COLOR
* B_LIST_SELECTED_BACKGROUND_COLOR
* B_LIST_ITEM_TEXT_COLOR
* B_LIST_SELECTED_ITEM_TEXT_COLOR
hrev44573
2012-08-22 00:28:24 -04:00
Joseph R. Prostko
f49d27c7ed Allow Puri to be added to GCC2 hybrid builds hrev44571 2012-08-21 22:20:13 -04:00
François Revol
70449c90d9 dev-perso: Add current branch name in window title for git
* when the project uses git, include the current branch name
in the terminal window title
hrev44570
2012-08-22 01:16:15 +02:00
Alex Smith
4591ebc99a Fixes for building Haiku x86_64 from itself. 2012-08-18 19:57:46 +01:00
Alex Smith
aecb9567e3 Rebuilt flex package for x86_64.
The original package was cross-compiled to Haiku, turns out flex's
build system uses paths to stuff from the host system, so the package
was broken. Rebuilt from Haiku.
2012-08-18 19:07:25 +01:00
Alex Smith
d2a1be1c4e Cleaner separation of 32-/64-bit specific CPU/interrupt code.
Renamed {32,64}/int.cpp to {32,64}/descriptors.cpp, which now contain
functions for GDT and TSS setup that were previously in arch_cpu.cpp,
as well as the IDT setup code. These get called from the init functions
in arch_cpu.cpp, rather than having a bunch of ifdef'd chunks of code
for 32/64.
2012-08-18 17:43:40 +01:00
Alex Smith
dcd705cded CID 715610: Operands don't affect result.
Comparing a uint32 against ~0UL would always be false on 64-bit.
2012-08-18 14:06:11 +01:00
Alex Smith
423d8dfed3 CID 714424: Operands don't affect result.
Storing size_t result of std::string::find_first_of in a uint32 then
checking against std::string::npos would never be true.
2012-08-18 14:02:58 +01:00
Alex Smith
f16cf073d5 CID 714526: Operands don't affect result.
Incorrect check of in_addr_t (uint32_t) against (unsigned long)-1
would never be true.
2012-08-18 13:58:21 +01:00
Alex Smith
d339b8398c CID 712424: Unintended sign extension.
Fix taken from glibc, glibc bug #3747.
2012-08-18 13:52:10 +01:00
Alex Smith
3ab9de3b68 CID 714425: Operands don't affect result.
Result of a call to strtoul was stored in a uint32, then checked
against ULONG_MAX for error. If long is 64 bits, the error check
will never be true.
2012-08-18 13:39:37 +01:00
Alex Smith
f3780ae8b2 CID 715700, 715701: Fixed assumption of 4 byte pointer size. 2012-08-18 12:24:09 +01:00
Alex Smith
6314232f45 Added VirtualMemory preferences to image. 2012-08-18 12:12:36 +01:00
Alex Smith
3c230971db 64-bit fixes for sis900 network driver. 2012-08-18 11:51:17 +01:00
Alex Smith
be2f57f0de 64-bit fixes for wb840 network driver. 2012-08-18 11:47:03 +01:00
Alex Smith
660e7dd1c4 CID 714542: Unintentional sign extension to 64 bits.
Fixed by changing type of val from u_long to u_int32_t. val only gets
passed to htonl which takes a uint32_t, so no need for it to be u_long.
2012-08-18 11:28:59 +01:00
Alex Smith
79a1c3c6b8 Another missed printf string (CID 715659). 2012-08-18 10:50:11 +01:00
Alex Smith
816aded4c1 Added Installer and DriveSetup to image. 2012-08-18 10:36:00 +01:00
Alex Smith
7e5b39b672 Fix printf format warnings that were missed earlier (CIDs 715645-715657). 2012-08-18 10:27:52 +01:00
Alex Smith
173342c0ab Change the heap reservation for 64-bit platforms.
Hoard reserves a chunk of the address space to grow the heap into.
As there is a much larger address space available on 64-bit systems,
we may as well reserve a larger chunk of address space (64GB for now,
though could probably reserve a lot more than that and still leave
plenty of room for other areas).
2012-08-17 15:34:11 +01:00
Alex Smith
9f629ef38e Rename KERNEL_LOAD_BASE_64BIT to KERNEL_LOAD_BASE_64_BIT for consistency. 2012-08-17 15:16:25 +01:00
Alex Smith
e993391e9c Fixed crypt() for 64-bit systems. 2012-08-17 13:37:05 +01:00
Scott McCreary
b9398be907 Added chess game Puri as an OptionalPackage hrev44568 2012-08-17 05:33:02 -07:00
John Scipione
2c1f6c10ce Update ListItem's to use menu item colors.
* Selected bg uses B_MENU_SELECTED_BACKGROUND_COLOR
* Selected text uses B_MENU_SELECTED_ITEM_TEXT_COLOR
* Unselected text uses B_MENU_ITEM_TEXT_COLOR

Update BStringItem, but also the custom Listitem code in the
Appearance and Locale preflets.
hrev44567
2012-08-20 02:20:59 -04:00
Ryan Leavengood
403bd97afc Update the copyright year too. hrevr1alpha4-44565 hrev44565 2012-08-20 01:13:19 -04:00
Ryan Leavengood
f1b593e7b5 Rename Pre Beta 1 version to Pre Alpha 4, introduce Alpha 4 version.
Make Pre Beta 1 fall after Alpha 4. Hopefully we won't need an Alpha 5.
hrev44564
2012-08-20 01:09:53 -04:00
Ryan Leavengood
eb89cc6b0b Deskbar: You know, we should actually use the translated name.
If this ever worked before, I don't know how.
hrev44563
2012-08-19 21:29:28 -04:00
Ryan Leavengood
d6c852ec49 Actually cache something when CacheLocalizedName is called.
Before its name was a lie, since nothing was cached.

Another boolean was added because getting the localized name could fail, and we
don't want to pointlessly try again, so relying on fHasLocalizedName won't work
for that.

Since in my tests this was getting called up to 4 times per application when
opening the Deskbar Application menu, this caching should speed that up a bit,
at least when this file name translation feature is turned on.
2012-08-19 21:25:43 -04:00
Ryan Leavengood
379dcaa1f6 Look up the entry_ref for a signature for localized file names.
Fixes #8124.
2012-08-19 21:21:30 -04:00
Ryan Leavengood
d7f6b4c18c ControlLook: Don't tint the selected menu item color.
Now that we use the actual selected menu item ui_color, this tinting is not
needed. In fact it makes the selected item too dark.

Thanks diver for noticing.
hrev44562
2012-08-19 18:17:07 -04:00
Siarzhuk Zharski
fa2fa02613 Insert Addressing::LeaveGroup call on dropping multicast group membership.
Omitting this call left invalid reference to deleted group in the
multicast groups hash-map and any upcoming attempt to join the group will
crash the system. Fixes #6736.
hrev44561
2012-08-19 22:38:21 +02:00
Rene Gollent
1e068aea46 Slight improvement to tracing output.
- If a trace entry has a stack trace, attempt to demangle the associated symbols.
  Could be enhanced further to also demangle the arguments but doesn't yet.
  Interestingly there are some mangled symbols that our demangler appears to
  not handle correctly (gcc4).
hrev44560
2012-08-19 16:04:36 -04:00
Rene Gollent
ad4d57f14b Fix multicast double free issue in IPv4.
- IPv4 had the same problem as v6. Most likely this was an oversight
  when converting from a C to a C++ module. Might help with #6736 and
  #8894.
hrev44559
2012-08-19 11:09:06 -04:00
Rene Gollent
9db38fdf34 Fix ticket #8870.
- multicast_address was being freed twice in ipv6_uninit_protocol(),
  causing a panic on exit in apps that made use of it.
hrev44558
2012-08-19 08:57:21 -04:00
Fredrik Holmqvist
ac827a2baa Make strcmp do four byte comparisons on aligned strings.
Used libMicro's strcmp test to evaluate performance:
OPTS="-E -C 200 -S -W"
bin/strcmp	$OPTS -N "strcmp_10"	-s 10	-I 10
bin/strcmp	$OPTS -N "strcmp_100"	-s 100	-I 20
bin/strcmp	$OPTS -N "strcmp_1k"	-s 1k	-I 50
bin/strcmp	$OPTS -N "strcmp_10k"	-s 10k	-I 800
bin/strcmp	$OPTS -N "strcmp_1m"	-s 1m   -I 500000
bin/strcmp	$OPTS -N "strcmp_10m"	-s 10m  -I 5000000

Before:
             prc thr   usecs/call      samples   errors cnt/samp     size
strcmp_10      1   1      0.02510          201        0    10000       10
strcmp_100     1   1      0.17520          169        0     5000      100
strcmp_1k      1   1      1.67700          177        0     2000     1024
strcmp_10k     1   1     17.24800          194        0      125    10240
strcmp_1m      1   1  17892.00000          160        0        1  1048576
strcmp_10m     1   1 183136.00000          201        0        1 10485760

After:
strcmp_10      1   1      0.01800          194        0    10000       10
strcmp_100     1   1      0.13540          190        0     5000      100
strcmp_1k      1   1      1.24950          188        0     2000     1024
strcmp_10k     1   1     12.85600          190        0      125    10240
strcmp_1m      1   1  12930.00000          170        0        1  1048576
strcmp_10m     1   1 134382.00000          195        0        1 10485760
hrev44557
2012-08-19 11:39:16 +02:00
Ryan Leavengood
a1efcf2c7f Set the Terminal window flags correctly when going fullscreen.
Fixes #8862.
hrev44556
2012-08-19 00:16:02 -04:00
Philippe Saint-Pierre
ed63a5d20c Tracker: Double-Click simplification
Double-click check was redoing what is essentially already done in input_server.

The way we were doing it, right clicking (or pressing a different button for the second click,
for that matter) wasn't clearing the fields remembered and thus not breaking the sequence.
So a third click returning to the correct sequence (in a short time) would get recognized
as a valid second click.  So a quick left-right-left would be seen by that method as left-left.

Also, clean up a previous fix I committed.  Removed the introduced Origin() method as it
is the LeftTop() method I was interested in and it is already existing.

Fix #8714
hrev44555
2012-08-18 22:13:09 -04:00
Matt Madia
efb1039348 Increase the size of the nightly images. hrev44554 2012-08-18 10:36:41 -04:00
Matt Madia
467f607aa3 Add WebPositive catalogs to gcc2hybrid images. Fixes #8846. hrev44553 2012-08-18 10:33:39 -04:00