summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Martin <antoine@nagafix.co.uk>2016-09-20 13:34:40 +0700
committerAaron Plattner <aplattner@nvidia.com>2016-09-21 13:20:14 -0700
commit367c778240b4266958f33cec3653d5389e283557 (patch)
treefc62dee7f912557f917ad93fceb329f877a60e5a
parent8706f60ab457867c120dd44e812b8fadc2be7179 (diff)
remove dead code in dummy driver
Signed-off-by: Antoine Martin <antoine@nagafix.co.uk> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
-rw-r--r--src/dummy_driver.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/dummy_driver.c b/src/dummy_driver.c
index 9d4d5bf..cf15053 100644
--- a/src/dummy_driver.c
+++ b/src/dummy_driver.c
@@ -673,25 +673,6 @@ DUMMYSwitchMode(SWITCH_MODE_ARGS_DECL)
void
DUMMYAdjustFrame(ADJUST_FRAME_ARGS_DECL)
{
- SCRN_INFO_PTR(arg);
- int Base;
-
- Base = (y * pScrn->displayWidth + x) >> 2;
-
- /* Scale Base by the number of bytes per pixel. */
- switch (pScrn->depth) {
- case 8 :
- break;
- case 15 :
- case 16 :
- Base *= 2;
- break;
- case 24 :
- Base *= 3;
- break;
- default :
- break;
- }
}
/* Mandatory */