Diff for /np2/x11/gtk2/window_keydisp.c between versions 1.4 and 1.6

version 1.4, 2009/03/05 11:50:39 version 1.6, 2011/01/15 18:43:14
Line 1 Line 1
 /*      $Id$    */  
   
 #include "compiler.h"  #include "compiler.h"
   
 #if defined(SUPPORT_KEYDISP)  #if defined(SUPPORT_KEYDISP)
Line 42  static void Line 40  static void
 kdispwin_window_destroy(GtkWidget *w, gpointer p)  kdispwin_window_destroy(GtkWidget *w, gpointer p)
 {  {
   
         UNUSED(w);  
         UNUSED(p);  
   
         if (kdwin.window)          if (kdwin.window)
                 kdwin.window = NULL;                  kdwin.window = NULL;
         drawmng_release(kdwin.hdl);          drawmng_release(kdwin.hdl);
Line 59  static void Line 54  static void
 close_window(gpointer data, guint action, GtkWidget *w)  close_window(gpointer data, guint action, GtkWidget *w)
 {  {
   
         UNUSED(data);  
         UNUSED(action);  
         UNUSED(w);  
   
         xmenu_toggle_item(kdwin.menuhdl, "keydisp", FALSE);          xmenu_toggle_item(kdwin.menuhdl, "keydisp", FALSE);
 }  }
   
Line 70  static void Line 61  static void
 change_module(gpointer data, guint action, GtkWidget *w)  change_module(gpointer data, guint action, GtkWidget *w)
 {  {
   
         UNUSED(data);  
         UNUSED(w);  
   
         if (kdispcfg.mode != action) {          if (kdispcfg.mode != action) {
                 kdispcfg.mode = action;                  kdispcfg.mode = action;
                 sysmng_update(SYS_UPDATEOSCFG);                  sysmng_update(SYS_UPDATEOSCFG);
Line 135  static gint Line 123  static gint
 kdispwin_expose(GtkWidget *w, GdkEventExpose *ev)  kdispwin_expose(GtkWidget *w, GdkEventExpose *ev)
 {  {
   
         UNUSED(w);  
   
         if (ev->type == GDK_EXPOSE) {          if (ev->type == GDK_EXPOSE) {
                 if (ev->count == 0) {                  if (ev->count == 0) {
                         drawkeys();                          drawkeys();
Line 154  static UINT8 Line 140  static UINT8
 getpal8(CMNPALFN *self, UINT num)  getpal8(CMNPALFN *self, UINT num)
 {  {
   
         UNUSED(self);  
   
         if (num < KEYDISP_PALS) {          if (num < KEYDISP_PALS) {
                 return kdwinpal[num] >> 24;                  return kdwinpal[num] >> 24;
         }          }
Line 166  static UINT32 Line 150  static UINT32
 getpal32(CMNPALFN *self, UINT num)  getpal32(CMNPALFN *self, UINT num)
 {  {
   
         UNUSED(self);  
   
         if (num < KEYDISP_PALS) {          if (num < KEYDISP_PALS) {
                 return kdwinpal[num] & 0xffffff;                  return kdwinpal[num] & 0xffffff;
         }          }
Line 178  static UINT16 Line 160  static UINT16
 cnvpal16(CMNPALFN *self, RGB32 pal32)  cnvpal16(CMNPALFN *self, RGB32 pal32)
 {  {
   
         UNUSED(self);  
   
         return (UINT16)drawmng_makepal16(&kdwin.hdl->pal16mask, pal32);          return (UINT16)drawmng_makepal16(&kdwin.hdl->pal16mask, pal32);
 }  }
   

Removed from v.1.4  
changed lines
  Added in v.1.6


RetroPC.NET-CVS <cvs@retropc.net>