]> Git Repo - qemu.git/blobdiff - hw/tc6393xb_template.h
net: reorganize headers
[qemu.git] / hw / tc6393xb_template.h
index 587382eeccaa7830e214826555ea49bc4f3242ab..4cbbad5daedc044df2c1a6e4226708dbc8392f1e 100644 (file)
@@ -5,7 +5,7 @@
  *
  * FB support code. Based on G364 fb emulator
  *
- * Copyright (c) 2007 Hervé Poussineau
+ * Copyright (c) 2007 Hervé Poussineau
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #if BITS == 8
 #endif
 
 
-static void glue(tc6393xb_draw_graphic, BITS)(struct tc6393xb_s *s)
+static void glue(tc6393xb_draw_graphic, BITS)(TC6393xbState *s)
 {
     int i;
-    int w_display;
     uint16_t *data_buffer;
     uint8_t *data_display;
 
-    data_buffer = (uint16_t*)(phys_ram_base + s->vram_addr);
-    w_display = s->scr_width * BITS / 8;
+    data_buffer = s->vram_ptr;
     data_display = ds_get_data(s->ds);
     for(i = 0; i < s->scr_height; i++) {
 #if (BITS == 16)
@@ -69,4 +65,3 @@ static void glue(tc6393xb_draw_graphic, BITS)(struct tc6393xb_s *s)
 
 #undef BITS
 #undef SET_PIXEL
-
This page took 0.0269 seconds and 4 git commands to generate.