]> git.proxmox.com Git - qemu.git/blobdiff - hw/tc6393xb_template.h
user: Restore debug usage message for '-d ?' in user mode emulation
[qemu.git] / hw / tc6393xb_template.h
index c0c4cde1f6c3bd521e81a28144f935f8111af052..1ccf6e8dfe95958573a9f25987e9343a41107a5f 100644 (file)
  * 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)