# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
|
|
#
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
# Please add additional copyright information _after_ the line containing
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
|
|
#
|
|
# ROCK Linux: rock-src/package/kasc/clanlib/directfb_fix.patch
|
|
# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
|
|
#
|
|
# This patch file is dual-licensed. It is available under the license the
|
|
# patched project is licensed under, as long as it is an OpenSource license
|
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
|
# of the GNU General Public License as published by the Free Software
|
|
# Foundation; either version 2 of the License, or (at your option) any later
|
|
# version.
|
|
#
|
|
# --- ROCK-COPYRIGHT-NOTE-END ---
|
|
|
|
--- ./Sources/Display/Display/DirectFB/target_directfb.cpp.orig 2003-08-05 15:59:59.000000000 +0200
|
|
+++ ./Sources/Display/Display/DirectFB/target_directfb.cpp 2003-08-05 16:00:38.000000000 +0200
|
|
@@ -104,7 +104,7 @@
|
|
|
|
unsigned int CL_Target_DirectFB::get_width() const
|
|
{
|
|
- unsigned int width = 0;
|
|
+ int width = 0;
|
|
|
|
surface->GetSize (surface, &width, NULL);
|
|
|
|
@@ -113,7 +113,7 @@
|
|
|
|
unsigned int CL_Target_DirectFB::get_height() const
|
|
{
|
|
- unsigned int height = 0;
|
|
+ int height = 0;
|
|
|
|
surface->GetSize (surface, NULL, &height);
|
|
|
|
@@ -147,7 +147,7 @@
|
|
{
|
|
case DSPF_A8:
|
|
return 0;
|
|
- case DSPF_RGB15:
|
|
+ case DSPF_ARGB1555:
|
|
return 0x007c00;
|
|
case DSPF_RGB16:
|
|
return 0x00f800;
|
|
@@ -170,7 +170,7 @@
|
|
{
|
|
case DSPF_A8:
|
|
return 0;
|
|
- case DSPF_RGB15:
|
|
+ case DSPF_ARGB1555:
|
|
return 0x0003e0;
|
|
case DSPF_RGB16:
|
|
return 0x0007e0;
|
|
@@ -193,7 +193,7 @@
|
|
{
|
|
case DSPF_A8:
|
|
return 0;
|
|
- case DSPF_RGB15:
|
|
+ case DSPF_ARGB1555:
|
|
case DSPF_RGB16:
|
|
return 0x00001f;
|
|
case DSPF_RGB24:
|
|
@@ -215,7 +215,7 @@
|
|
{
|
|
case DSPF_A8:
|
|
return 0xff;
|
|
- case DSPF_RGB15:
|
|
+ case DSPF_ARGB1555:
|
|
case DSPF_RGB16:
|
|
case DSPF_RGB24:
|
|
case DSPF_RGB32:
|
|
@@ -263,7 +263,7 @@
|
|
|
|
void CL_Target_DirectFB::Clear (float r, float g, float b, float a)
|
|
{
|
|
- unsigned int width, height;
|
|
+ int width, height;
|
|
|
|
surface->GetSize (surface, &width, &height);
|
|
|