#
3a2b67b5 |
|
21-Nov-2017 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
Support for configuring screen backlight Accelerant interface: Introduce new hooks B_SET_BRIGHTNESS and B_GET_BRIGHTNESS. Brightness is a float in the 0..1 range. App_server: Forward brightness things between BScreen and the accelerant. intel_extreme: Implement the hooks. Note that this only works for laptop panels, but the driver will pretend to support it in other cases as well. Screen preferences: If the accelerant supports the B_GET_BRIGHTNESS hook, allow to set brightness with a slider. Otherwise, the slidere is hidden and these changes aren't visible.
|
#
17f68169 |
|
29-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Turned the screens list into a singleton. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34373 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c1df12d2 |
|
21-Aug-2009 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
fixed / removed comments git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32563 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e18224cd |
|
21-Aug-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Added a new AS_GET_SCREEN_FRAME function, as getting the frame via AS_SCREEN_GET_MODE won't work with multi-screen support anymore, and is also more overhead than needed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32559 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f7e005eb |
|
21-Aug-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Moved PrivateScreen.h header to headers/private/interface. * Desktop is now including it as well to be able to use the new B_CURRENT_WORKSPACE_INDEX constant. * Include order cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32558 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
aadbd94e |
|
21-Aug-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* BPrivateScreen used B_CURRENT_WORKSPACE where an index was required. This was reason that caused bug #2658. * Introduced a new constant B_CURRENT_WORKSPACE_INDEX in PrivateScreen.h; maybe this should be made public one day. * Fixed another reason that caused bug #2658: BPrivateScreen waited 100ms between frame updates, leaving a large window open for such problems; I've reduced it to 10ms now, but the actual bug fix is to reset the counter for each BScreen object, so that when you create a new BScreen object, the frame is retrieved timely. * The reference count was not initialized, causing BPrivateScreens to be leaked forever. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32557 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
0eed9183 |
|
20-Aug-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Rewrote screen configuration management: VirtualScreen doesn't have anything to do with the configurations now, instead, there is a separated ScreenConfigurations class that maintains all known screen_configurations per workspace (and the Workspace::Private class has two of them, one for the current modes, one for the stored modes). * Added Desktop::{Get|Set}ScreenMode() methods, ServerApp now only calls those. * Getting and setting of anything else than the current screen is now supported. * This change also fixes that a temporarily set screen mode was not being restored on workspace switch. * Also, the Deskbar now seems to have the wrong location a lot, which is something that should be easily fixable therefore. I will look into this next. * Got rid of the unhandy screen_id structure server side, and in BPrivateScreen; we now just use an int32 - the next API break should definitely replace the screen_id with a simple typedef. * Some cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32541 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c2784486 |
|
15-Oct-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* Introduced a monitor_info structure and means to let it be filled by the accelerant (or the app_server via EDID info). It's still experimental API, and opinions are welcome. * Moved BPrivateScreen into the BPrivate namespace. * Rewrote Screen.h. * Introduced a BScreen::GetMonitorInfo() method, and implemented it in the app server as well (ie. AS_GET_MONITOR_INFO). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22563 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
aaff012f |
|
30-Apr-2006 |
Stephan Aßmus <superstippi@gmx.de> |
Rudolf convinced me to enable WaitForRetrace() again, the ATI driver should be fixed instead (not to export the retrace semaphore when interrupts are disabled) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17274 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5ec797a7 |
|
29-Apr-2006 |
Stephan Aßmus <superstippi@gmx.de> |
* improved getting the retrace semaphore, now the PrivateScreen will not try to retrieve the retrace semaphore again and again if the graphics cards doesn't support it for some reason * disabled BScreen::WaitForRetarce() for now, since it will just hang on ATI Radeon at least git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17266 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
0ef40c5e |
|
01-Apr-2006 |
Michael Lotz <mmlr@mlotz.ch> |
This should fix the wrong colors for selected Tracker icons. Fixes bug #205. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16951 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
9a44fdc9 |
|
18-Mar-2006 |
Axel Dörfler <axeld@pinc-software.de> |
* Implemented a new client allocation method: instead of having all bitmaps of all teams in serveral server areas, and instead of having to eventually clone them all several times in BBitmap, we now have one or more areas per team, and BBitmap will only clone areas once if needed. As a side effect, this method should be magnitudes faster than the previous version. * This method is also much more secure: instead of putting the allocation maintenance structures into those everyone-read-write areas, they are now separated, so that faulty applications cannot crash the app_server this way anymore. This should fix bug #172. * Freeing memory is not yet implemented though! (although all memory will be freed upon app exit) * There are now 3 different bitmap allocation strategies: per ClientMemoryAllocator (ie. via ServerApp), per area (for overlays, not yet implemented), and using malloc()/free() for server-only bitmaps. * ServerBitmap now deletes its buffers itself. * Cleaned up BBitmap and BApplication a bit. * The test environment currently doesn't build anymore, will fix it next. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16826 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
06740743 |
|
11-Mar-2006 |
Axel Dörfler <axeld@pinc-software.de> |
* GetModeList() didn't correctly check if the mode list allocation failed. * No longer changes the arguments in case of an error. * Takes communication errors more gracefully. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16703 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
57a6c095 |
|
04-Feb-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Work-around to make broken apps like 3dmix work - patch submitted by genki-at-bredband.net: * we no longer drop into the debugger if BScreen is used without an app_server link. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16229 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8f9ab4d1 |
|
29-Dec-2005 |
Axel Dörfler <axeld@pinc-software.de> |
Fixed client side AS_SET_DESKTOP_COLOR - did send a uint32 as int32. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15725 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b66d7537 |
|
14-Nov-2005 |
Axel Dörfler <axeld@pinc-software.de> |
* Prepared the BScreen and BPrivateScreen class to be used with multiple monitors. * BPrivateScreen now buffers its frame for 0.1 seconds (so that calling it several times in a row is both consistent and cheap). * Added GetFrameBufferConfig() call to the HW interface (and implemented it). * Added server commands AS_VALID_SCREEN_ID, AS_GET_NEXT_SCREEN_ID, and AS_GET_FRAME_BUFFER_CONFIG. * BPrivateScreen::BaseAddress() and BPrivateScreen::BytesPerRow() are now working. * minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14915 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d9525baa |
|
13-Nov-2005 |
Axel Dörfler <axeld@pinc-software.de> |
* Forgot to update Screen.h with the last commit... * Introduced and implemented AS_GET_SCREEN_ID_FROM_WINDOW - it only returns B_MAIN_SCREEN_ID, though. * renamed ServerWindow::fHandlerToken to fClientToken. * The BScreen(BWindow *) constructor now really asks the server for the screen ID. * ServerApp::fWindowList is now a BObjectList. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14910 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a817d6ad |
|
14-Nov-2005 |
Axel Dörfler <axeld@pinc-software.de> |
* (tried to) implemented RootLayer::ResizeBy() and activated AS_SET_SCREEN_MODE again; it works in the test environment, but I haven't yet tested it on real hardware. * moved PrivateScreen.h to src/kits/interface/ - it's not used outside of that one. * moved reading the color map from the BPrivateScreen constructor to the ColorMap() method. * improved/cleaned server/client communication for the screen stuff a tiny bit. * fixed the GetBitmap() method I implemented yesterday. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14908 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
466871cc |
|
13-Nov-2005 |
Axel Dörfler <axeld@pinc-software.de> |
Implemented GetBitmap() - only client side, though. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14904 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
16046321 |
|
13-Jul-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Implemented BPrivateScreen::ReadBitmap(), but the guts are still missing git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13665 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
3f319b33 |
|
10-Jul-2005 |
Michael Lotz <mmlr@mlotz.ch> |
Some cleanup, some removed typos, some unification, some fixes and some added todos. Most of it related to client-server communication. Apps that rely on BFont stuff should work now (StyledEdit, Fonts, Keymap, Menu, ...). Or should not hang/quit at startup at least. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13625 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2e6a5805 |
|
05-Jul-2005 |
Stephan Aßmus <superstippi@gmx.de> |
MenuField layouts the menu bar better with respect to fDivider, it aligns better with other controls. fDivider in TextControl is an integer number now, small fix and small cleanup in Menu, Window::InitData takes an optional BBitmap token to construct an offscreen window, fixed PrivateScreen IndexForColor, View prevents being located at fractional coordinates as in R5, BBitmap unlocks its offscreen window since it is never Show()n and needs manual unlocking, fixed Slider offscreen window mode and improved triange thumb drawing, ScrollView would not crash when passing a NULL target just for kicks, the private MenuBar class now implements Draw to draw itself a little differently inside the BMenuField (dark right and bottom side) - though how it currently sets the clipping region prevents the text controls to draw in Playground, needs fixing git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13450 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
55b222b0 |
|
25-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Stephan already implemented the needed support for dpms stuff too, so why not implementing the client methods too? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13274 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
75de27f8 |
|
25-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
more BScreen related stuff git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13270 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
583f6c3e |
|
24-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Added server side support for BScreen::ProposeMode(), fixed client side too. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13269 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c6418981 |
|
24-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
implemented client/server side support for BScreen::GetDeviceInfo() and WaitForRetrace(), and (only client side) support for Bscreen::ProposeMode() git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13266 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
10c5dab8 |
|
18-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Added client side support for BScreen::RetraceSemaphore() and BScreen::GetModeList(). Server side support isn't yet there, though. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13207 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
dd10337f |
|
14-Jun-2005 |
Axel Dörfler <axeld@pinc-software.de> |
Renamed BAppServerLink to AppServerLink, BPortLink to PortLink, LinkMsgReader to LinkReceiver, LinkMsgSender to LinkSender, and put everything into the BPrivate namespace. Made AppServerLink a cheap object - it will use the applications receiver/sender and not create its own buffers. Fixed broken communication stuff here and there (mostly Font.cpp). Put the newly introduced set|get_system_colors() into the BPrivate namespace - please don't introduce private functions into the public namespace!!! Also fixed their broken communication use, as Darkwyrm obviously forgot about it again: the sequence Flush(); GetNextMessage() without error checking is purely wrong and can make the app hang and/or crash! :-) Other minor cleanup. The input_server used some test mode with the haiku build target which is probably wrong. Hopefully I did not forget anything this time. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13128 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e93cd650 |
|
12-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
system_colors() expects a colormap to be permanently stored within libbe, so we never delete the BPrivateScreen object git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13071 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
698185b1 |
|
10-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Removed a (no longer true) comment, added a TODO item git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13038 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2ed35bc8 |
|
08-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Thanks to Axel's change, now we can pass the app_server's colormap to libbe. Methods like BScreen::ColorMap() and BScreen::ColorForIndex() work. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13023 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
3ba7d6f3 |
|
08-Jun-2005 |
Axel Dörfler <axeld@pinc-software.de> |
Added AS_{GET|SET}_DESKTOP_COLOR. (Incorrectly) implemented AS_GET_DESKTOP_COLOR - works for now. Minor cleanup. Is AS_SET_SCREEN_MODE used at all? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13010 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8eae8b05 |
|
08-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Every BApplication (even applications which didn't use it) allocated a BPrivateScreen object. Now they are created/destroyed on demand (when a BScreen object is constructed), and reference counted, so that there is still only one per app. Note that since we are creating/deleting them, constructing a BScreen object can be more time consuming than before, but personally I find this approach much cleaner. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13006 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7475dcdf |
|
07-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
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
|
#
314a1024 |
|
01-May-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Implemented BPrivateScreen::SetMode() git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12522 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fca6492f |
|
30-Apr-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Finally tested the code, there were a bunch of problems: fixed them all. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12518 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
1f41d635 |
|
30-Apr-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
B_ALL_WORKSPACES -> B_CURRENT_WORKSPACE git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12516 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
34c39bf0 |
|
29-Apr-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
BScreen's GetMode(), Frame() and ColorSpace() should work now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12511 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ca8ed922 |
|
21-Dec-2004 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Moved gPrivateScreen into the BPrivate namespace. Small cleanups to Application.cpp. Refined some comments. Used strdup() instead of new because it`s nicer for strings. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10514 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
39ffb980 |
|
29-Jun-2004 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Added some comments and some (commented, for now) code as an example for the app_server communication. DarkWyrm (or Adi, or whoever else), please feel free to implement the needed code on the app_server side when you want ^_^ (or when it's possible, not so important right now) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8229 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
bbc3515b |
|
28-Jun-2004 |
Axel Dörfler <axeld@pinc-software.de> |
Added missing header. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8213 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
624df6c6 |
|
28-Jun-2004 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Rewrote some parts BPrivateScreen (in a hurry) to make libbe compile git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8209 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
17f68169f2c1e58053c180e04365d221de7d6d72 |
|
29-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Turned the screens list into a singleton. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34373 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c1df12d2787e06af1c6ec2b6c8433b992f6dbc3d |
|
21-Aug-2009 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
fixed / removed comments git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32563 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e18224cdf4738dd04ea4f386aea2efa7bc5aa857 |
|
21-Aug-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Added a new AS_GET_SCREEN_FRAME function, as getting the frame via AS_SCREEN_GET_MODE won't work with multi-screen support anymore, and is also more overhead than needed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32559 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f7e005eb834bd43dfcb74bc6d8e337b0a327105a |
|
21-Aug-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Moved PrivateScreen.h header to headers/private/interface. * Desktop is now including it as well to be able to use the new B_CURRENT_WORKSPACE_INDEX constant. * Include order cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32558 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
aadbd94ef7c89e9acbca53bf6f18c1f25ba4ba25 |
|
21-Aug-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* BPrivateScreen used B_CURRENT_WORKSPACE where an index was required. This was reason that caused bug #2658. * Introduced a new constant B_CURRENT_WORKSPACE_INDEX in PrivateScreen.h; maybe this should be made public one day. * Fixed another reason that caused bug #2658: BPrivateScreen waited 100ms between frame updates, leaving a large window open for such problems; I've reduced it to 10ms now, but the actual bug fix is to reset the counter for each BScreen object, so that when you create a new BScreen object, the frame is retrieved timely. * The reference count was not initialized, causing BPrivateScreens to be leaked forever. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32557 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
0eed9183061a7763972bc2589f9c43489cd078ab |
|
20-Aug-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Rewrote screen configuration management: VirtualScreen doesn't have anything to do with the configurations now, instead, there is a separated ScreenConfigurations class that maintains all known screen_configurations per workspace (and the Workspace::Private class has two of them, one for the current modes, one for the stored modes). * Added Desktop::{Get|Set}ScreenMode() methods, ServerApp now only calls those. * Getting and setting of anything else than the current screen is now supported. * This change also fixes that a temporarily set screen mode was not being restored on workspace switch. * Also, the Deskbar now seems to have the wrong location a lot, which is something that should be easily fixable therefore. I will look into this next. * Got rid of the unhandy screen_id structure server side, and in BPrivateScreen; we now just use an int32 - the next API break should definitely replace the screen_id with a simple typedef. * Some cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32541 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c27844865341578ec602735e06ecba0bd188cdeb |
|
15-Oct-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* Introduced a monitor_info structure and means to let it be filled by the accelerant (or the app_server via EDID info). It's still experimental API, and opinions are welcome. * Moved BPrivateScreen into the BPrivate namespace. * Rewrote Screen.h. * Introduced a BScreen::GetMonitorInfo() method, and implemented it in the app server as well (ie. AS_GET_MONITOR_INFO). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22563 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
aaff012f00e89ffe89e7fee0e52a99f83d761036 |
|
30-Apr-2006 |
Stephan Aßmus <superstippi@gmx.de> |
Rudolf convinced me to enable WaitForRetrace() again, the ATI driver should be fixed instead (not to export the retrace semaphore when interrupts are disabled) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17274 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5ec797a76f3bbb8ac83678bd568cee1d2e767d86 |
|
29-Apr-2006 |
Stephan Aßmus <superstippi@gmx.de> |
* improved getting the retrace semaphore, now the PrivateScreen will not try to retrieve the retrace semaphore again and again if the graphics cards doesn't support it for some reason * disabled BScreen::WaitForRetarce() for now, since it will just hang on ATI Radeon at least git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17266 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
0ef40c5e17ad18066faa78f61981550c9502f3ff |
|
01-Apr-2006 |
Michael Lotz <mmlr@mlotz.ch> |
This should fix the wrong colors for selected Tracker icons. Fixes bug #205. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16951 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
9a44fdc97c4c91b6be039ac5125a618c8fd268cc |
|
18-Mar-2006 |
Axel Dörfler <axeld@pinc-software.de> |
* Implemented a new client allocation method: instead of having all bitmaps of all teams in serveral server areas, and instead of having to eventually clone them all several times in BBitmap, we now have one or more areas per team, and BBitmap will only clone areas once if needed. As a side effect, this method should be magnitudes faster than the previous version. * This method is also much more secure: instead of putting the allocation maintenance structures into those everyone-read-write areas, they are now separated, so that faulty applications cannot crash the app_server this way anymore. This should fix bug #172. * Freeing memory is not yet implemented though! (although all memory will be freed upon app exit) * There are now 3 different bitmap allocation strategies: per ClientMemoryAllocator (ie. via ServerApp), per area (for overlays, not yet implemented), and using malloc()/free() for server-only bitmaps. * ServerBitmap now deletes its buffers itself. * Cleaned up BBitmap and BApplication a bit. * The test environment currently doesn't build anymore, will fix it next. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16826 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
067407432e2d9dd6babe3498ff46f625a2dd218a |
|
11-Mar-2006 |
Axel Dörfler <axeld@pinc-software.de> |
* GetModeList() didn't correctly check if the mode list allocation failed. * No longer changes the arguments in case of an error. * Takes communication errors more gracefully. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16703 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
57a6c095d5641559e59e4f175728c010e1da193a |
|
04-Feb-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Work-around to make broken apps like 3dmix work - patch submitted by genki-at-bredband.net: * we no longer drop into the debugger if BScreen is used without an app_server link. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16229 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8f9ab4d1a3a0fba29df0bc3ebc3e99a3445a0b85 |
|
29-Dec-2005 |
Axel Dörfler <axeld@pinc-software.de> |
Fixed client side AS_SET_DESKTOP_COLOR - did send a uint32 as int32. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15725 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
b66d7537121d617485e5f5c47d4deb7f79f20880 |
|
14-Nov-2005 |
Axel Dörfler <axeld@pinc-software.de> |
* Prepared the BScreen and BPrivateScreen class to be used with multiple monitors. * BPrivateScreen now buffers its frame for 0.1 seconds (so that calling it several times in a row is both consistent and cheap). * Added GetFrameBufferConfig() call to the HW interface (and implemented it). * Added server commands AS_VALID_SCREEN_ID, AS_GET_NEXT_SCREEN_ID, and AS_GET_FRAME_BUFFER_CONFIG. * BPrivateScreen::BaseAddress() and BPrivateScreen::BytesPerRow() are now working. * minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14915 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d9525baaf5225ccac51a32b0fb2ba5d8c0b367cf |
|
13-Nov-2005 |
Axel Dörfler <axeld@pinc-software.de> |
* Forgot to update Screen.h with the last commit... * Introduced and implemented AS_GET_SCREEN_ID_FROM_WINDOW - it only returns B_MAIN_SCREEN_ID, though. * renamed ServerWindow::fHandlerToken to fClientToken. * The BScreen(BWindow *) constructor now really asks the server for the screen ID. * ServerApp::fWindowList is now a BObjectList. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14910 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a817d6ad5a6b49ed79d84ce2e8a6e9c5f5150560 |
|
14-Nov-2005 |
Axel Dörfler <axeld@pinc-software.de> |
* (tried to) implemented RootLayer::ResizeBy() and activated AS_SET_SCREEN_MODE again; it works in the test environment, but I haven't yet tested it on real hardware. * moved PrivateScreen.h to src/kits/interface/ - it's not used outside of that one. * moved reading the color map from the BPrivateScreen constructor to the ColorMap() method. * improved/cleaned server/client communication for the screen stuff a tiny bit. * fixed the GetBitmap() method I implemented yesterday. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14908 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
466871cc9312e373b9fa698cd1e28587b06702f4 |
|
13-Nov-2005 |
Axel Dörfler <axeld@pinc-software.de> |
Implemented GetBitmap() - only client side, though. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14904 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
16046321cc1ea02071b973c61d782755883bc9ea |
|
13-Jul-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Implemented BPrivateScreen::ReadBitmap(), but the guts are still missing git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13665 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
3f319b3346fcc3f45786d9fb9c6ca698c4de7a22 |
|
10-Jul-2005 |
Michael Lotz <mmlr@mlotz.ch> |
Some cleanup, some removed typos, some unification, some fixes and some added todos. Most of it related to client-server communication. Apps that rely on BFont stuff should work now (StyledEdit, Fonts, Keymap, Menu, ...). Or should not hang/quit at startup at least. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13625 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2e6a5805ba8db3b072d81257cc44f966def5fd37 |
|
05-Jul-2005 |
Stephan Aßmus <superstippi@gmx.de> |
MenuField layouts the menu bar better with respect to fDivider, it aligns better with other controls. fDivider in TextControl is an integer number now, small fix and small cleanup in Menu, Window::InitData takes an optional BBitmap token to construct an offscreen window, fixed PrivateScreen IndexForColor, View prevents being located at fractional coordinates as in R5, BBitmap unlocks its offscreen window since it is never Show()n and needs manual unlocking, fixed Slider offscreen window mode and improved triange thumb drawing, ScrollView would not crash when passing a NULL target just for kicks, the private MenuBar class now implements Draw to draw itself a little differently inside the BMenuField (dark right and bottom side) - though how it currently sets the clipping region prevents the text controls to draw in Playground, needs fixing git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13450 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
55b222b0b02bcc53c7301f8e3200553f046bc4e5 |
|
25-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Stephan already implemented the needed support for dpms stuff too, so why not implementing the client methods too? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13274 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
75de27f83b9482a5a32fb06b7e1a20a14383d8c6 |
|
25-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
more BScreen related stuff git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13270 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
583f6c3eba3f0d46c6025ac9e15023826463da83 |
|
24-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Added server side support for BScreen::ProposeMode(), fixed client side too. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13269 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c6418981503ea9b168a9944c49ffbe3c382ea572 |
|
24-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
implemented client/server side support for BScreen::GetDeviceInfo() and WaitForRetrace(), and (only client side) support for Bscreen::ProposeMode() git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13266 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
10c5dab8076ea7b99a1afb13b46582167eba7a31 |
|
18-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Added client side support for BScreen::RetraceSemaphore() and BScreen::GetModeList(). Server side support isn't yet there, though. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13207 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
dd10337fd005a67a4947714fdeecf2121485b91d |
|
14-Jun-2005 |
Axel Dörfler <axeld@pinc-software.de> |
Renamed BAppServerLink to AppServerLink, BPortLink to PortLink, LinkMsgReader to LinkReceiver, LinkMsgSender to LinkSender, and put everything into the BPrivate namespace. Made AppServerLink a cheap object - it will use the applications receiver/sender and not create its own buffers. Fixed broken communication stuff here and there (mostly Font.cpp). Put the newly introduced set|get_system_colors() into the BPrivate namespace - please don't introduce private functions into the public namespace!!! Also fixed their broken communication use, as Darkwyrm obviously forgot about it again: the sequence Flush(); GetNextMessage() without error checking is purely wrong and can make the app hang and/or crash! :-) Other minor cleanup. The input_server used some test mode with the haiku build target which is probably wrong. Hopefully I did not forget anything this time. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13128 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e93cd6508d8f151cf0ffa944a197885103acc786 |
|
12-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
system_colors() expects a colormap to be permanently stored within libbe, so we never delete the BPrivateScreen object git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13071 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
698185b19a85b3402ba5eb2ad39bc1c2a7bb12fd |
|
10-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Removed a (no longer true) comment, added a TODO item git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13038 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2ed35bc88c0b74f64c136466da1fcbb64ff9054b |
|
08-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Thanks to Axel's change, now we can pass the app_server's colormap to libbe. Methods like BScreen::ColorMap() and BScreen::ColorForIndex() work. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13023 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
3ba7d6f35058ac6bdd50b37d60e75034cef83ce2 |
|
08-Jun-2005 |
Axel Dörfler <axeld@pinc-software.de> |
Added AS_{GET|SET}_DESKTOP_COLOR. (Incorrectly) implemented AS_GET_DESKTOP_COLOR - works for now. Minor cleanup. Is AS_SET_SCREEN_MODE used at all? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13010 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8eae8b05e84b91859ad701bde81aa3596d8c693e |
|
08-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Every BApplication (even applications which didn't use it) allocated a BPrivateScreen object. Now they are created/destroyed on demand (when a BScreen object is constructed), and reference counted, so that there is still only one per app. Note that since we are creating/deleting them, constructing a BScreen object can be more time consuming than before, but personally I find this approach much cleaner. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13006 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7475dcdf3a736a8e17b0d3fabe970a48661f7d83 |
|
07-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
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
|
#
314a1024466022744b0d0936be034cfa12fec86d |
|
01-May-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Implemented BPrivateScreen::SetMode() git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12522 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fca6492ffe83a588000248322f0449187689bda4 |
|
30-Apr-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Finally tested the code, there were a bunch of problems: fixed them all. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12518 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
1f41d635e9ccc4d8f5deee414e794c81a06fed38 |
|
30-Apr-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
B_ALL_WORKSPACES -> B_CURRENT_WORKSPACE git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12516 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
34c39bf046e89dcc8e270639bbcdf3c060ae8d68 |
|
29-Apr-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
BScreen's GetMode(), Frame() and ColorSpace() should work now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12511 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ca8ed922800bc5910f2d61b4870517360c34bae5 |
|
21-Dec-2004 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Moved gPrivateScreen into the BPrivate namespace. Small cleanups to Application.cpp. Refined some comments. Used strdup() instead of new because it`s nicer for strings. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10514 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
39ffb9801204d4c9bae3741d0118763667e82367 |
|
29-Jun-2004 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Added some comments and some (commented, for now) code as an example for the app_server communication. DarkWyrm (or Adi, or whoever else), please feel free to implement the needed code on the app_server side when you want ^_^ (or when it's possible, not so important right now) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8229 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
bbc3515ba2be81c51dc0d3ae68789f2dc47899a8 |
|
28-Jun-2004 |
Axel Dörfler <axeld@pinc-software.de> |
Added missing header. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8213 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
624df6c6b57e4fec285a8a4448075e9ae9988a1c |
|
28-Jun-2004 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Rewrote some parts BPrivateScreen (in a hurry) to make libbe compile git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8209 a95241bf-73f2-0310-859d-f6bbb57e9c96
|