X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/cdde55f54a0880bde5694fcdea8e386ada0cd5ce..6093edb55a1c35ac1163e244f02023345e3e3aca:/video/tnt2.c diff --git a/video/tnt2.c b/video/tnt2.c index f23a9d7..6da661e 100644 --- a/video/tnt2.c +++ b/video/tnt2.c @@ -1,3 +1,13 @@ +/* tnt2.c + * NVidia TNT2 driver. + * NetWatch system management mode administration console + * + * Copyright (c) 2008 Jacob Potter and Joshua Wise. All rights reserved. + * This program is free software; you can redistribute and/or modify it under + * the terms found in the file LICENSE in the root of this source tree. + * + */ + #include #include #include @@ -6,7 +16,7 @@ #include #include -#include "checksumrect.h" +#include "generic.h" static void tnt2_getvmode(void *priv); @@ -31,14 +41,17 @@ static void tnt2_getvmode(void *priv) tnt2_fb.curmode.bytestride = 4; tnt2_fb.curmode.text = 0; tnt2_fb.checksum_rect = checksum_rect_generic32; + tnt2_fb.copy_pixels = copy_pixels_generic32; break; case 0: tnt2_fb.curmode.text = 1; - tnt2_fb.checksum_rect = (checksum_rect_t) text_checksum; + tnt2_fb.checksum_rect = text_checksum; + tnt2_fb.copy_pixels = text_render; break; default: tnt2_fb.curmode.text = 1; - tnt2_fb.checksum_rect = (checksum_rect_t) text_checksum; + tnt2_fb.checksum_rect = text_checksum; + tnt2_fb.copy_pixels = text_render; outputf("Unknown TNT2 format %x", vgard(0x28)); break; }