Commit Graph

57477 Commits

Author SHA1 Message Date
Alexander von Gluck IV
ce1ac42908 radeon_hd: Fix logic bug in transmitter init.
* Don't use any functions requiring knowledge of
  attached displays before they are probed.
* ucDigMode un-needed on INIT action.
2017-09-11 22:24:20 -05:00
Alexander von Gluck IV
e5f5c3c4ce radeon_hd: Cosmetic cleanups. No functional change 2017-09-11 22:24:20 -05:00
John Scipione
00171c6f43 Deskbar: fix a crash holding window over drag area
state: Call (Calling BeginLineArray with a count <= 0)

Thanks diver
2017-09-11 13:48:05 -07:00
John Scipione
e4cb43d506 Deskbar: constrain width setting within limits
... on settings load. This will prevent 0 in the width setting from setting
Deskbar's width to 0.

This should make the Desktop appear again.
2017-09-11 13:35:30 -07:00
John Scipione
378aa08b54 Deskbar: refactor, no functional change
* Split int32 declarations into own lines.
* Merge if and return stmts into single return stmt using ternary operator.
2017-09-11 10:23:25 -07:00
John Scipione
3641948f78 Deskbar: better checking on string comparison
Check if both strings are NULL before passing to strcmp().

It would be bad if view->Name() were NULL and we tried to dereference it.

Thanks Jérôme for noticing this.
2017-09-11 10:18:32 -07:00
Jérôme Duval
9b80d1767a Set the image size for the debug minimum profile to 450MB. 2017-09-11 18:12:53 +02:00
John Scipione
1bb2e6239d Deskbar: variable width Deskbar in vertical mode
Feature to make Deskbar width variable via a dragger.

Resize Deskbar by clicking and dragging the mouse on the
horizontal side of Deskbar opposite the screen's edge.
(left side for default top right).

The resize dragger is hidden in horizontal mode.

Details below:
* ExpandoMenuBar is resized with rest of window.
* Rename where to whereScreen to make it clear that the variable
  is in screen coordinates.
* Lock focus on window while resizing
* Resize via TResizeControl class which is based on TDragRegion
* Set default width to minimum so everything stays the same.
  - don't set the width setting to 0 on quit, use the new setting.
* Set max tray width based on setting
* Make clock area a bit wider preventing replicant icons from
  overrunning the clock area.
* Leave more room left of clock makes replicants wrap earlier,
  leaving icon gap width between replicants and clock. Before it
  would butt flush against the clock before moving down a row.
* Remove FrameMoved from TDragRegion, we are already doing this
  in BarView -- no reason to do it twice.
* Need to redraw the drag region after moving or it will be half
  drawn.
* Hide resize control in horizontal mode
* Add room for resize dragger when placing replicants
* Update width setting unless window is hidden
  - This prevents Deskbar from being set to minimum width after it
    is hidden.

Also, constrain width setting within limits but not width of the
BarView which we want to track the window width. In practice they
should be the same but it is possible for them to get out of sync
and that's okay. Obvious example of the setting and actual width
of the window being out of sync is in the hidden case.

unify dragger width and kDragWidth vars

Make drag regions pixel perfect:
* Vertical mode status tray reduced in height by 1px to match height
  in horizontal mode exactly.
* move icons over by 2px in horizontal mode so that there is a bit more space
  on the left and so that it matches pixel perfect with vertical mode.
  - to see this quickly switch between bottom right vertical at the minimum width
    and horizontal mode then notice how the icons don't move

Draw drag background then menu color when not active to get rid of drawing
glitches in horizontal mode on the top pixel.

Add some more room between last icon and clock in horizontal mode.
2017-09-10 18:33:30 -07:00
John Scipione
a6be6c4d67 Deskbar: Minor functional changes
Use std::min() over min_c in TimeView.cpp
Check for NULL view before dereferencing
Return B_BAD_VALUE for bad inputs
2017-09-10 17:08:48 -07:00
John Scipione
e4d65fe7ae Deskbar: Style fixes to StatusView
Deskbar: Minor style fixes in TimeView.cpp
2017-09-10 17:08:48 -07:00
Jessica Hamilton
9533c3e921 docker: tools for creating a container with Haiku cross-compilers.
* This also includes the package tool for easy use of installing
  dependencies in a container.
* Pre-built docker images are also available at
  https://hub.docker.com/r/haiku/cross-compiler/
2017-09-11 07:06:52 +12:00
Jessica Hamilton
c5e77784a8 compatibility/bsd: add endian.h for BSD extensions. 2017-09-11 07:06:52 +12:00
Jessica Hamilton
f995cdcc5f Revert "endian.h: add BSD extensions when _BSD_SOURCE is defined."
This reverts commit b8cfd96db1.
2017-09-11 07:06:52 +12:00
Augustin Cavalier
bfbb965580 Interface Kit: Remove more non-BControlLook code. 2017-09-10 14:58:35 -04:00
John Scipione
3b9755d72f Webpositive: unset tool tip over tab close button
Tool tip reads tab name or "New tab" for new tab, making it sometimes
appear that the close button would produce a new tab instead. Removing
the tooltip over the close button eliminates this confusion.

An alternative suggested in hrev45298 was to make the tool tip say
"Close tab" instead but some felt it unneccessary and so was reverted.

"A tool-tip for the close buttons is completely unnecessary. The
prevailing thought for items where the action is easy to grasp (or easy to
grasp upon clicking the first time), is that a tool tip is not necessary."

This method fixes the confusion w/o adding uneccessary clutter.
2017-09-09 13:20:37 -07:00
John Scipione
ec7c3ff311 Webpositive: Refactor
... to make variables available in outer scope,
eliminate now redundant nested if and reorder condition
variables to avoid function call in common case.

all prep for next commit...
2017-09-09 13:09:07 -07:00
Jessica Hamilton
b8cfd96db1 endian.h: add BSD extensions when _BSD_SOURCE is defined. 2017-09-10 07:37:32 +12:00
Jessica Hamilton
77815ad59a ftp: rename variable named bool.
* Causes conflicts with <stdbool.h>
2017-09-10 07:35:41 +12:00
Jessica Hamilton
d995db52e5 radeon_hd: fix typo in hrev51403. 2017-09-09 22:16:46 +12:00
autonielx
df0f0f87a3 Update translations from Pootle 2017-09-09 06:56:15 +02:00
Alexander von Gluck IV
1121a23254 radeon_hd: Improve external/dce PLL programming
* Bug fix around pll_external_set. We prepared all the args,
  but never actually executed the AtomBIOS table.
* Add new AtomBIOS methods in Polaris to set external PLL
  clock frequencies.
* Implement new 1.7 PLL set table on Polaris.
2017-09-08 21:05:43 -05:00
Alexander von Gluck IV
66a16010b7 radeon_hd: Add missing DP STATUS request type
* Name change inline with DP specifications.
2017-09-08 18:02:32 -05:00
Alexander von Gluck IV
807f4d4d5e radeon_hd: Add FirePro W4100 per #13693
* Thanks moochris!
2017-09-08 17:27:51 -05:00
Alexander von Gluck IV
25ef6f0bb7 radeon_hd: Implement AtomBIOS debug op 2017-09-08 17:22:40 -05:00
Automatic Committer
06094b5f13 Update pci.ids from pciids.sourceforge.net 2017-09-07 05:20:24 +02:00
Akshay Agarwal
defdefa89a docs/user: Update locale kit description.
- Delete the introduction from the kits list page, as it is already
under locale_intro.
- Update the description in locale_intro.
- Since the locale kit now lives in libbe, delete the paragraph about
libraries from the intro, and move the still relevant part about
liblocalestub to the catalog translation macros description in
Catalog.dox.
2017-09-06 07:47:47 +02:00
Adrien Destugues
19b3ca491b Add a MIME type and sniffing rule for Protracker mods. 2017-09-06 07:29:31 +02:00
Jessica Hamilton
6cc6f04747 build_cross_tools_gcc4: bring in sync with native compiler.
* Previously, the cross-compiler would generate code that doesn't
  run on Haiku, particularly where TLS is concerned. It also ended
  up with a c++config.h header incompatible with the version in
  the native compiler.
* Now possible to correctly cross-compile rust for Haiku.
2017-09-05 21:41:39 +00:00
Jessica Hamilton
fe434a740e rust (x86_64): new package, development snapshot.
* Note that this is a cross-compiled version from git
  master, so may run into bugs.

ref: https://github.com/haikuports/haikuports/b2214fb42
2017-09-05 21:23:19 +00:00
Jessica Hamilton
e8caf2e794 llvm (x86_64): update to package with threading enabled.
ref: https://github.com/haikuports/haikuports/commit/c539ff63
2017-09-05 15:49:40 +00:00
Humdinger
274c11610b Add Filer v1.2.0 and StreamRadio 2017-09-02 19:23:37 +02:00
autonielx
9f265de100 Update translations from Pootle 2017-09-02 07:20:56 +02:00
François Revol
b7fc170ebd MIME: Open Gopher URLs with WebPositive, as we support them now 2017-09-01 22:18:11 +02:00
Akshay Agarwal
28eb6b3f2b Use formatters from locale kit to format time remaining/finish time.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-09-01 21:37:35 +02:00
Akshay Agarwal
22d88eb415 BCalendarView: Adjust day name format to available space.
* Use BDateFormat::GetDayName() to fetch weekday names.
* Use appropriate symbol width(Mon, Mo, M) depending on the frame width.
* Provide functionality to update day name header in case of locale
preferences change.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-09-01 20:20:06 +02:00
Augustin Cavalier
a222e4d0cc virtio_net: Add to image.
Stress-tested in VirtualBox. No major performance or usability problems;
even when I had tracing enabled, it was transferring data at ~1.1MB/s.
2017-08-31 17:37:50 -04:00
Humdinger
7a8f174967 Updated FilWip package
...includes crash fix for 64bit when launching preferences.
2017-08-31 17:29:10 +02:00
Automatic Committer
1cf5ededc4 Update pci.ids from pciids.sourceforge.net 2017-08-31 05:20:23 +02:00
Augustin Cavalier
bcc52318d6 NetworkTimeView: Add missing default in MessageReceived switch.
Fixes #12652.
2017-08-30 20:09:26 -04:00
A-star-ayush
bb382cf816 Preferences/Time: Use BNetworkAddressResolver.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Some coding style changes by me.
Fixes #12319.
2017-08-30 20:03:18 -04:00
Akshay Agarwal
ed3f47fe2e BDateFormatTest: Add tests for day and month names for all format syles.
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2017-08-31 10:27:26 +12:00
Akshay Agarwal
ec3dbaa13f Use B_FULL_DATE_FORMAT as the default style value.
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2017-08-31 10:27:09 +12:00
Adrien Destugues
62abb67d6e Cleanup my mess.
Repeatedly applying the wrong patch won't work.

When do we switch to Gerrit? :'(
2017-08-30 20:29:58 +02:00
Akshay Agarwal
bb3ad41ada Implement functions to get localized long/short dayofweek name and short month name in BDateFormat.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-08-30 20:28:31 +02:00
Akshay Agarwal
f2c460497c BDurationFormatTest: Add test cases for abbreviated format style.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-08-30 20:15:30 +02:00
Akshay Agarwal
dadffbdbff BDurationFormatTest: Add test cases for abbreviated format style.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-08-30 19:32:48 +02:00
Adrien Destugues
8fe6df22f8 update php version to remove ICU55 dependency. 2017-08-29 19:26:39 +02:00
A-star-ayush
5c31f5a67a tcp: rfc 2018: implemented SACK option
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2017-08-28 08:52:19 +00:00
A-star-ayush
515cda7241 tcp: rfc 6582: implemented NewReno modification
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2017-08-28 08:52:19 +00:00
A-star-ayush
15c58f0cb7 tcp: rfc 5681: implemented ideal timer
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2017-08-28 08:52:19 +00:00