History log of /haiku/src/kits/game/WindowScreen.cpp
Revision Date Author Comments
# e4f18add 17-Nov-2021 Augustin Cavalier <waddlesplash@gmail.com>

Game & Print Kits: Fix GCC 11 warnings.


# b08627f3 04-May-2018 Murai Takashi <tmurai01@gmail.com>

Fix catching polymorphic type by value

Replace catching polymorphic type std::bad_alloc 'by value'
with 'by reference'.
Pointed by gcc8


# 7f4d1af4 04-Jan-2013 Sergei Reznikov <diver@gelios.net>

Compilation fixes for x86_64.

Added quite a few missing components to image:

alert arp bc CortexAddOnHost

CDPlayer CharacterMap DeskCalc
Devices DiskUsage Expander LaunchBox MediaConverter NetworkStatus
PoorMan Pulse Screenshot ShowImage SoundRecorder TV Workspaces

DataTranslations Media Printers ScreenSaver

BSnow Cortex FontDemo OverlayImage Pairs

cddb_daemon midi_server power_daemon print_server print_addon_server

Canon LIPS3 Compatible Canon LIPS4 Compatible Gutenprint
PCL5 Compatible PCL6 Compatible PDF Writer PS Compatible

libgame.so libmedia.so

Signed-off-by: Alex Smith <alex@alex-smith.me.uk>


# 6cb28af8 19-Jul-2011 Marcus Overhagen <marcusoverhagen@gmail.com>

Remove unsave usage of strncpy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42455 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9fe35223 26-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* BWindowScreens had no sychronization mechanism whatsoever - since the
workspace activation message was asynchronous, whether or not the
BWindowScreen stopped drawing in time was pure luck (this also caused crashes
with the VESA driver, as that one unmaps its frame buffer during mode switch).
Introduced a new AS_DIRECT_SCREEN_LOCK protocol for this.
* In the long term, we should let BWindowScreen use the same mechanism as
BDirectWindows, though.
* Removed superfluous locking in BDirectWindow::_InitData().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32746 a95241bf-73f2-0310-859d-f6bbb57e9c96


# acc71e7c 20-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* The feel of a BWindowScreen should actually be kWindowScreenFeel. This makes
the Deskbar behave, and not appear in front of those. However, if auto-raise
is turned on, the mouse cursor is shown, so it seems to get activated anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32535 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b4510aa1 14-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Reset the colors before switching the screen mode


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32365 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 08c47037 13-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Move HideCursor() fom Show() to _Activate(), so it gets called also on workspace change.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32300 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9620428f 11-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

This part wasn't meant to be committed


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32262 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c7f89a12 11-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Handle workspace changes gracefully, without crashing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32261 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bfb5eef8 10-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

When setting the palette, the passed array is 0 based, even if the first
index is not 0. Bruno, can you check if this fixes SoundPlay's colors?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32241 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d0c308a5 05-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Accidentally enabled tracing


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32148 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9a95658c 05-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Some cleanups. Shouldn't include any functional changes, except maybe
better cleanup on exiting.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32147 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3d198cd3 08-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

Do no export unsupported accelerant hooks. Hopefully fixes #3088.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28562 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 33309cb5 05-Nov-2008 Axel Dörfler <axeld@pinc-software.de>

* BWindowScreen::_InitClone() was broken, it called the "get clone info" method
on uninitialized accelerant, but that's what AS_GET_DRIVER_PATH is for.
* This should fix #2847.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28534 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cfc3fa87 09-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

* Cleaned up InterfaceDefs.h, added TODO about getting rid of declaring
_init_interface_kit_() in there.
* Moved private get_mode_parameter() into the BPrivate namespace.
* Renamed interface_misc.h to InterfacePrivate.h.
* Minor other cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24869 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 80d75f15 21-Jun-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fixed problems with try/catch, hopefully. Thanks Axel for pointing them
out.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21486 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ffcd67bc 18-Jun-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

moved duplicate code to a common location.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21459 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a24a5156 18-Jun-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

splitted SetActiveState() into 2 methods, since it was very messy

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21454 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 99851ad6 17-Jun-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

free() the modelist as it's allocated using malloc. A forgotten printf -> fprintf. minor other stuff.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21452 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6a45488d 18-Jun-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Used exceptions to handle errors on InitData(). I hope I didn't made
stupid errors, since I don't use exceptions usually. Feel free to beat
me on this. Moved uninitialization to _DisposeData(). Corrected some
styling issues pointed out by axel. Used fprintf instead of printf.
Turned off debugging.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21450 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f09ba8ea 14-Jun-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Call get_clone_info and get_clone_info_size instead of using the
driver's path. More correct. Now we could remove the app_server's
command to retrieve the driver's path.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21408 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b30d7f0e 06-May-2006 Axel Dörfler <axeld@pinc-software.de>

* Now calls BApplication::HideCursor() on creation and ShowCursor() when it's
disconnected (so that you can still just call ShowCursor() to have it back,
in case you want that).
* Rewrote WindowScreen.h.
* Cleanup, removed unused variables, renamed private methods.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17349 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3df31bf3 06-May-2006 Axel Dörfler <axeld@pinc-software.de>

* Fixed SetColorList(): it set the color table as array of rgb_colors, but it's
an array with 3 byte per color only - this fixes the page_flip demo as part of
the sample code.
* Renamed mode2parms() to get_mode_parameter(). Also, it will now return "false"
on unknown mode values so that SetSpace() will fail instead of setting some
random mode.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17348 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f8915230 04-May-2006 Axel Dörfler <axeld@pinc-software.de>

Removed check for fAddonImage in CanControlFrameBuffer() - according to Rudolf, this
method should return the correct value before the accelerant is cloned.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17318 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fe01155b 04-May-2006 Axel Dörfler <axeld@pinc-software.de>

* Removed the (200, 200) inset.
* fOldMode is now set to the current display mode.
* Now checks semaphore creations and memory allocations for failure.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17317 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0398e7fb 26-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

After so much debugging, I realized that the vesa driver can't set the display mode. I'm stuck with testing till I find some other way...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15676 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2c6856d6 26-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

more cleanups. I'll probably end up rewriting the etire header

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15673 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5a077d3f 25-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Windowscreen sorta works. This should've waited till the end of Christmas holidays, but since I had to fix the build today...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15670 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 51a523b1 24-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

implemented AS_GET_ACCELERANT/DRIVER_PATH and renamed the relative constants

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15666 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a66e5019 24-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

more cleanup. I can't seem to be able to clone the vesa accelerant so I'm a bit stuck at the moment

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15665 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ed58e05e 24-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Partly converted the header to our coding style, added some debug output, started to clean up

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15664 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2b6ac345 20-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Got rid of R5 code

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15618 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 700b38ed 20-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Started porting WindowScreen to haiku

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15612 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 764ac9e5 10-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* A stripped down libgame.so is now added to the app_server test environment - it
contains code for BDirectWindow and BWindowScreen only.
* Updated BDirectWindow and BWindowScreen to no longer require the COMPILE_FOR_x
defines - compilation for R5 is not likely to work anymore, though (the Jamfile
didn't allow this anymore, anyway)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15465 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 366fdcdf 05-Jul-2005 Marcus Overhagen <marcusoverhagen@gmail.com>

Fixed build of libgame.so on TARGET_PLATFORM= dano or r5 so now
we can build MediaKit (which requires replacing libgame.so) for
targets haiku, r5 and dano. For building on Zeta, use platform dano.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13459 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 798fedbf 11-Jun-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Forgotten stuff: use B_2D_ACCELERATION instead of the value directly

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13066 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b0250ddd 11-Jun-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

use standard api where possible, small cleanups

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13065 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2defb213 11-Jun-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Accidentally commented out a funciton, better naming of a command

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13064 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 847254d8 11-Jun-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

BWindowScreen didn't work on r5 anymore. Replaced some stuff with BScreen::ProposeMode()

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13063 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ecc2961b 07-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Fixed warnings and the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13000 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8575beb8 25-Mar-2005 Jérôme Duval <korli@users.berlios.de>

by Stefano Ceccherini
Ifdeffed R5 specific stuff so DirectWindow.cpp and WindowScreen.cpp compile on
haiku too. That doesnt' mean they work there though.
This introduced some warnings which I didn't fix, as they'll go away later.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11982 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8f8871f9 03-Feb-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Use definitions from WindowPrivate.h and InputServerTypes.h instead of redefining them.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11233 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6f633eb2 17-Dec-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Some comments on possible changes, before I forget about them. Compacted some code.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10480 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d4c31885 27-Sep-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Renamed sync() to card_sync() to avoid name clashing with the "sync()" function in the new unistd.h. Commented out transparent_blit() to suppress a compiler warning, and added a comment to it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9069 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6b062877 27-Sep-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Some "forgotten" cleanups. Added a check for NULL in the constructor which avoids a crash in some cases.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9067 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 36eaad35 30-Mar-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Accidentally removed Marcus name from the authors's list


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7113 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 272b2685 30-Mar-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

WindowScreen implemented by Caz and myself, fully working (well, at least with the pageflipper demo) on BeOS R5.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7112 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d2ea8587 10-Aug-2002 beveloper <beveloper@nowhere.fake>

add set_mouse_position() that was missing


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@696 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0b4a36ab 10-Aug-2002 beveloper <beveloper@nowhere.fake>

start with libgame.so


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@695 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7f4d1af49dd1d67ecbf1d934eddd92cae7c4c558 04-Jan-2013 Sergei Reznikov <diver@gelios.net>

Compilation fixes for x86_64.

Added quite a few missing components to image:

alert arp bc CortexAddOnHost

CDPlayer CharacterMap DeskCalc
Devices DiskUsage Expander LaunchBox MediaConverter NetworkStatus
PoorMan Pulse Screenshot ShowImage SoundRecorder TV Workspaces

DataTranslations Media Printers ScreenSaver

BSnow Cortex FontDemo OverlayImage Pairs

cddb_daemon midi_server power_daemon print_server print_addon_server

Canon LIPS3 Compatible Canon LIPS4 Compatible Gutenprint
PCL5 Compatible PCL6 Compatible PDF Writer PS Compatible

libgame.so libmedia.so

Signed-off-by: Alex Smith <alex@alex-smith.me.uk>


# 6cb28af8fdade41425f3c9c21dcb9d3a23bc8775 19-Jul-2011 Marcus Overhagen <marcusoverhagen@gmail.com>

Remove unsave usage of strncpy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42455 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9fe35223cf4eb9714865152d62e8efc36b327fef 26-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* BWindowScreens had no sychronization mechanism whatsoever - since the
workspace activation message was asynchronous, whether or not the
BWindowScreen stopped drawing in time was pure luck (this also caused crashes
with the VESA driver, as that one unmaps its frame buffer during mode switch).
Introduced a new AS_DIRECT_SCREEN_LOCK protocol for this.
* In the long term, we should let BWindowScreen use the same mechanism as
BDirectWindows, though.
* Removed superfluous locking in BDirectWindow::_InitData().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32746 a95241bf-73f2-0310-859d-f6bbb57e9c96


# acc71e7c7c666824557eacb3bd42a9aa802c1196 20-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* The feel of a BWindowScreen should actually be kWindowScreenFeel. This makes
the Deskbar behave, and not appear in front of those. However, if auto-raise
is turned on, the mouse cursor is shown, so it seems to get activated anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32535 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b4510aa10c5d7cb4c3044761dd7d4242cabef9e5 14-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Reset the colors before switching the screen mode


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32365 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 08c4703712607829e505da495d6c2a623808cf1f 13-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Move HideCursor() fom Show() to _Activate(), so it gets called also on workspace change.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32300 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9620428fdf88b056cabab049c5de9155dbf35eb7 11-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

This part wasn't meant to be committed


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32262 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c7f89a129d27ba0a463bfe894a7d365eae12c917 11-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Handle workspace changes gracefully, without crashing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32261 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bfb5eef88f1db699dc19e28d11172fcb35cdf7ec 10-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

When setting the palette, the passed array is 0 based, even if the first
index is not 0. Bruno, can you check if this fixes SoundPlay's colors?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32241 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d0c308a5b64ba61d45387f55e33b57b8d6cc3965 05-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Accidentally enabled tracing


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32148 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9a95658ce0c5e62a04ff2e203013a17848d8c483 05-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Some cleanups. Shouldn't include any functional changes, except maybe
better cleanup on exiting.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32147 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3d198cd3ae9d2e132f711df5ea838e7bffe45c40 08-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

Do no export unsupported accelerant hooks. Hopefully fixes #3088.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28562 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 33309cb5fceef4141aefe77c63262f4cc53e5855 05-Nov-2008 Axel Dörfler <axeld@pinc-software.de>

* BWindowScreen::_InitClone() was broken, it called the "get clone info" method
on uninitialized accelerant, but that's what AS_GET_DRIVER_PATH is for.
* This should fix #2847.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28534 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cfc3fa87da824bdf593eb8b817a83b6376e77935 09-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

* Cleaned up InterfaceDefs.h, added TODO about getting rid of declaring
_init_interface_kit_() in there.
* Moved private get_mode_parameter() into the BPrivate namespace.
* Renamed interface_misc.h to InterfacePrivate.h.
* Minor other cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24869 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 80d75f15dfa48ebea421c6b2c19a5296cc63d7eb 21-Jun-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fixed problems with try/catch, hopefully. Thanks Axel for pointing them
out.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21486 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ffcd67bc8277349aebf089d7357716698aafd55b 18-Jun-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

moved duplicate code to a common location.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21459 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a24a5156f9fc4c841e23dbb02f13cd23434d8858 18-Jun-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

splitted SetActiveState() into 2 methods, since it was very messy

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21454 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 99851ad6dbe3938a7e4765af81ce14bf72655aaf 17-Jun-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

free() the modelist as it's allocated using malloc. A forgotten printf -> fprintf. minor other stuff.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21452 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6a45488dd93a920bccd174756ad44613d844189c 18-Jun-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Used exceptions to handle errors on InitData(). I hope I didn't made
stupid errors, since I don't use exceptions usually. Feel free to beat
me on this. Moved uninitialization to _DisposeData(). Corrected some
styling issues pointed out by axel. Used fprintf instead of printf.
Turned off debugging.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21450 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f09ba8ea46ba2f4e482d7cd03e8eb77f37a60663 14-Jun-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Call get_clone_info and get_clone_info_size instead of using the
driver's path. More correct. Now we could remove the app_server's
command to retrieve the driver's path.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21408 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b30d7f0e0535bb739625e0143d3e94807efbe155 06-May-2006 Axel Dörfler <axeld@pinc-software.de>

* Now calls BApplication::HideCursor() on creation and ShowCursor() when it's
disconnected (so that you can still just call ShowCursor() to have it back,
in case you want that).
* Rewrote WindowScreen.h.
* Cleanup, removed unused variables, renamed private methods.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17349 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3df31bf3060181a19ce992d7a412abdd7cce37fc 06-May-2006 Axel Dörfler <axeld@pinc-software.de>

* Fixed SetColorList(): it set the color table as array of rgb_colors, but it's
an array with 3 byte per color only - this fixes the page_flip demo as part of
the sample code.
* Renamed mode2parms() to get_mode_parameter(). Also, it will now return "false"
on unknown mode values so that SetSpace() will fail instead of setting some
random mode.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17348 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f8915230d5fddfdea95bea58e18ba6cf0f5b8d57 04-May-2006 Axel Dörfler <axeld@pinc-software.de>

Removed check for fAddonImage in CanControlFrameBuffer() - according to Rudolf, this
method should return the correct value before the accelerant is cloned.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17318 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fe01155b84b3e601f71c2c857e31c4e5589d3bb5 04-May-2006 Axel Dörfler <axeld@pinc-software.de>

* Removed the (200, 200) inset.
* fOldMode is now set to the current display mode.
* Now checks semaphore creations and memory allocations for failure.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17317 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0398e7fb64ac9f9386552d7cc24ae0b1344aa07a 26-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

After so much debugging, I realized that the vesa driver can't set the display mode. I'm stuck with testing till I find some other way...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15676 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2c6856d660fe81f07aad153ec9a421185c3bf000 26-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

more cleanups. I'll probably end up rewriting the etire header

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15673 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5a077d3f0dbaa888af704842a974402f9bf565cf 25-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Windowscreen sorta works. This should've waited till the end of Christmas holidays, but since I had to fix the build today...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15670 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 51a523b14792f192490e6a09d13d313f5e870229 24-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

implemented AS_GET_ACCELERANT/DRIVER_PATH and renamed the relative constants

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15666 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a66e50197492a7f0d26a166416e75c7668b7a943 24-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

more cleanup. I can't seem to be able to clone the vesa accelerant so I'm a bit stuck at the moment

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15665 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ed58e05e188ef3b349bb470db8e1b83595396a8c 24-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Partly converted the header to our coding style, added some debug output, started to clean up

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15664 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2b6ac3455103894dff80df7729faf0127ba98b94 20-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Got rid of R5 code

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15618 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 700b38edc400945469c123feaab72fa38424161e 20-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Started porting WindowScreen to haiku

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15612 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 764ac9e5aad7fe74f52bd757b8739b8cf6a3e6f6 10-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* A stripped down libgame.so is now added to the app_server test environment - it
contains code for BDirectWindow and BWindowScreen only.
* Updated BDirectWindow and BWindowScreen to no longer require the COMPILE_FOR_x
defines - compilation for R5 is not likely to work anymore, though (the Jamfile
didn't allow this anymore, anyway)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15465 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 366fdcdfbb66b656c588f9573e7e10d804947ed7 05-Jul-2005 Marcus Overhagen <marcusoverhagen@gmail.com>

Fixed build of libgame.so on TARGET_PLATFORM= dano or r5 so now
we can build MediaKit (which requires replacing libgame.so) for
targets haiku, r5 and dano. For building on Zeta, use platform dano.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13459 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 798fedbf9f43290c66bfdf96e97a7e7199c2a230 11-Jun-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Forgotten stuff: use B_2D_ACCELERATION instead of the value directly

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13066 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b0250ddde23963bd483d4ee4a2b66c03f5d6d7d0 11-Jun-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

use standard api where possible, small cleanups

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13065 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2defb213d89dc9fabe19f7ad356b89d3d98de98e 11-Jun-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Accidentally commented out a funciton, better naming of a command

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13064 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 847254d8eefb645461fdacf45ae9de96ab080305 11-Jun-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

BWindowScreen didn't work on r5 anymore. Replaced some stuff with BScreen::ProposeMode()

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13063 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ecc2961bee0533d1951ce2eab54d2c1e87e87e02 07-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Fixed warnings and the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13000 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8575beb8d637d54fe734dab18df473b197fd462f 25-Mar-2005 Jérôme Duval <korli@users.berlios.de>

by Stefano Ceccherini
Ifdeffed R5 specific stuff so DirectWindow.cpp and WindowScreen.cpp compile on
haiku too. That doesnt' mean they work there though.
This introduced some warnings which I didn't fix, as they'll go away later.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11982 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8f8871f95b55a6984f7dd07923ce9914a49cd8bc 03-Feb-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Use definitions from WindowPrivate.h and InputServerTypes.h instead of redefining them.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11233 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6f633eb2a6c36b0e8b8f3ed459039ac5272ef5f2 17-Dec-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Some comments on possible changes, before I forget about them. Compacted some code.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10480 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d4c31885aa3582c70386f96aeec430cc21d04712 27-Sep-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Renamed sync() to card_sync() to avoid name clashing with the "sync()" function in the new unistd.h. Commented out transparent_blit() to suppress a compiler warning, and added a comment to it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9069 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6b06287720f7764500ed250270aa83771a7d087c 27-Sep-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Some "forgotten" cleanups. Added a check for NULL in the constructor which avoids a crash in some cases.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9067 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 36eaad35e1a2267f012c253edb8fa2eecc279ef0 30-Mar-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Accidentally removed Marcus name from the authors's list


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7113 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 272b2685eded8722b73a384060f1301a95eb0064 30-Mar-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

WindowScreen implemented by Caz and myself, fully working (well, at least with the pageflipper demo) on BeOS R5.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7112 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d2ea85878191e58e206cb83b914575da0080b028 10-Aug-2002 beveloper <beveloper@nowhere.fake>

add set_mouse_position() that was missing


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@696 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0b4a36abc99ddad5d0ec9337db3b3d5d2e4b99b0 10-Aug-2002 beveloper <beveloper@nowhere.fake>

start with libgame.so


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@695 a95241bf-73f2-0310-859d-f6bbb57e9c96