From fb0e0c889e1884dd459b7c4cd4a0b8f52d99096a Mon Sep 17 00:00:00 2001
From: Rudolf Cornelissen
Date: Mon, 3 May 2004 17:34:01 +0000
Subject: [PATCH] added move_overlay() for virtualscreens
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7376 a95241bf-73f2-0310-859d-f6bbb57e9c96
---
headers/private/graphics/nvidia/DriverInterface.h | 9 ++++++++-
src/add-ons/kernel/drivers/graphics/nvidia/UPDATE.html | 5 +++--
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/headers/private/graphics/nvidia/DriverInterface.h b/headers/private/graphics/nvidia/DriverInterface.h
index ff34b1ca86..64eebac1d0 100644
--- a/headers/private/graphics/nvidia/DriverInterface.h
+++ b/headers/private/graphics/nvidia/DriverInterface.h
@@ -5,7 +5,7 @@
Other authors:
Mark Watson;
Apsed;
- Rudolf Cornelissen 10/2002-4/2004.
+ Rudolf Cornelissen 10/2002-5/2004.
*/
#ifndef DRIVERINTERFACE_H
@@ -280,6 +280,13 @@ typedef struct {
overlay_token myToken; /* scaler is free/in use */
benaphore lock; /* for creating buffers and aquiring overlay unit routines */
bool crtc; /* location of overlay unit */
+ /* variables needed for virtualscreens (move_overlay()): */
+ bool active; /* true is overlay currently in use */
+ overlay_window ow; /* current position of overlay output window */
+ overlay_buffer ob; /* current inputbuffer in use */
+ overlay_view my_ov; /* current corrected view in inputbuffer */
+ uint32 h_ifactor; /* current 'unclipped' horizontal inverse scaling factor */
+ uint32 v_ifactor; /* current 'unclipped' vertical inverse scaling factor */
} overlay;
} shared_info;
diff --git a/src/add-ons/kernel/drivers/graphics/nvidia/UPDATE.html b/src/add-ons/kernel/drivers/graphics/nvidia/UPDATE.html
index 56cf0ba8c5..d015fdfa7e 100644
--- a/src/add-ons/kernel/drivers/graphics/nvidia/UPDATE.html
+++ b/src/add-ons/kernel/drivers/graphics/nvidia/UPDATE.html
@@ -4,7 +4,7 @@
Changes done for each driverversion:
-head (0.10-17), (Rudolf)
+head (0.10-18), (Rudolf)
- Implemented laptop internal flatpanel presence and native resolution detection;
- Implemented external DVI flatpanel(s) presence and native resolution detection;
@@ -24,7 +24,8 @@
- Modified overlay to work correctly with the virtualized setup;
- Added output-devices/heads matrix setup: the driver now selects the right head for primary output and dualhead should work for all cards with all monitor-types now (if connected before boot);
- Updated head selection code for register programming: NV11 needs a special treatment (again); NV11 dualhead modes are finally OK now, including switch mode;
-
- Updated secondary head specs: they are improved for nview cards (like GeForce4 and FX) in comparison to twinview cards (like GeForce2).
+
- Updated secondary head specs: they are improved for nview cards (like GeForce4 and FX) in comparison to twinview cards (like GeForce2);
+
- Added move_overlay() so overlay (finally) works correctly in virtualscreens.
The 'features' listed below are temporarily(?) shutdown. If your panel does not work with driver 0.10-17, PLEASE SEND FEEDBACK! Send me a logfile with full logging enabled as well. Feedback without accompaning logfiles are of very little use!