| version 1.10, 2010/08/16 14:26:55 | version 1.13, 2011/01/15 18:55:47 | 
| Line 1 | Line 1 | 
 | /*      $Id$    */ |  | 
 |  |  | 
 | /* | /* | 
 | * Copyright (c) 2003 NONAKA Kimihiro | * Copyright (c) 2003 NONAKA Kimihiro | 
 | * All rights reserved. | * All rights reserved. | 
| Line 47 | Line 45 | 
 | typedef struct { | typedef struct { | 
 | UINT8           scrnmode; | UINT8           scrnmode; | 
 | volatile int    drawing; | volatile int    drawing; | 
| int             width;          /* drawarea ¡¢¥Û width */ | int             width;          /* drawarea åá¥ç width */ | 
| int             height;         /* drawarea ¡¢¥Û height */ | int             height;         /* drawarea åá¥ç height */ | 
 | int             extend; | int             extend; | 
 | int             clipping; | int             clipping; | 
 |  |  | 
 | PAL16MASK       pal16mask; | PAL16MASK       pal16mask; | 
 |  |  | 
| RECT_T          scrn;           /* drawarea ¥Ë䦥ۥΥÁ¥¤ðÐ¥Û¡¼ð²¥Õ¥Æ¥è */ | RECT_T          scrn;           /* drawarea éæªå¢°ëï¾éȽò¢Ðçޡ迺饹¥ç */ | 
| RECT_T          rect;           /* drawarea ¡¢¥Ò¥Î¥Á¥¤ð¦¥±¡¢ö§¥ª¡¦¡¢¡¦¥³ */ | RECT_T          rect;           /* drawarea åᥩëï¾éȽåáÒå£ëå⥪åâ¡¢å⥳ */ | 
 |  |  | 
 | /* toolkit depend */ | /* toolkit depend */ | 
 | GdkPixbuf       *drawsurf; | GdkPixbuf       *drawsurf; | 
| Line 89  GtkWidget *drawarea; | Line 87  GtkWidget *drawarea; | 
 | #define BYTES_PER_PIXEL 3 | #define BYTES_PER_PIXEL 3 | 
 |  |  | 
 | /* | /* | 
| * drawarea ¡¢¥Û¡¦¡Ö¡¦¥±¡¦¥ì¡¦¥Ã¡¦¥Í¥Íì¦4:3 (640x480) ¤Ë¤¹¤ë¡£ | * drawarea ¤Î¥¢¥¹¥Ú¥¯¥ÈÈæ¤ò 4:3 (640x480) ¤Ë¤¹¤ë¡£ | 
 | */ | */ | 
 | static void | static void | 
 | adapt_aspect(int width, int height, int scrnwidth, int scrnheight) | adapt_aspect(int width, int height, int scrnwidth, int scrnheight) | 
| Line 468  void | Line 466  void | 
 | scrnmng_setwidth(int posx, int width) | scrnmng_setwidth(int posx, int width) | 
 | { | { | 
 |  |  | 
 | UNUSED(posx); |  | 
 |  |  | 
 | scrnstat.width = width; | scrnstat.width = width; | 
 | renewal_client_size(); | renewal_client_size(); | 
 | } | } | 
| Line 478  void | Line 474  void | 
 | scrnmng_setheight(int posy, int height) | scrnmng_setheight(int posy, int height) | 
 | { | { | 
 |  |  | 
 | UNUSED(posy); |  | 
 |  |  | 
 | scrnstat.height = height; | scrnstat.height = height; | 
 | renewal_client_size(); | renewal_client_size(); | 
 | } | } | 
| Line 542  void | Line 536  void | 
 | scrnmng_surfunlock(const SCRNSURF *surf) | scrnmng_surfunlock(const SCRNSURF *surf) | 
 | { | { | 
 |  |  | 
 | UNUSED(surf); |  | 
 |  |  | 
 | if (drawmng.drawsurf == drawmng.surface) { | if (drawmng.drawsurf == drawmng.surface) { | 
 | gdk_pixbuf_scale(drawmng.backsurf, drawmng.surface, | gdk_pixbuf_scale(drawmng.backsurf, drawmng.surface, | 
 | 0, 0, drawmng.rect.right, drawmng.rect.bottom, | 0, 0, drawmng.rect.right, drawmng.rect.bottom, |