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>
This commit is contained in:
parent
8706f60ab4
commit
367c778240
@ -673,25 +673,6 @@ DUMMYSwitchMode(SWITCH_MODE_ARGS_DECL)
|
|||||||
void
|
void
|
||||||
DUMMYAdjustFrame(ADJUST_FRAME_ARGS_DECL)
|
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 */
|
/* Mandatory */
|
||||||
|
Loading…
Reference in New Issue
Block a user