Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/basic-video/graphic.control.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2510 by niro, Mon Sep 14 08:17:58 2015 UTC revision 2561 by niro, Thu Sep 17 08:20:13 2015 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2    
3    push_config graphic_resolution
4    
5  help_graphic_resolution()  help_graphic_resolution()
6  {  {
7   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
# Line 46  set_graphic_resolution() Line 48  set_graphic_resolution()
48  control_graphic_resolution()  control_graphic_resolution()
49  {  {
50   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
51     push_config_graphic_resolution "${serial}"
52    }
53    
54    push_config_graphic_resolution()
55    {
56     local serial="$1"
57   local value   local value
58    
59   value=$(mysqldo "select resolution from cfg_graphic where serial='${serial}'")   value=$(mysqldo "select resolution from cfg_graphic where serial='${serial}'")
# Line 67  set_graphic_refresh() Line 75  set_graphic_refresh()
75   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
76   local value="${CLASS_ARGV[1]}"   local value="${CLASS_ARGV[1]}"
77    
78   import_resource cfg_graphic "${serial}" hz "${value}"   import_resource cfg_graphic "${serial}" refresh_rate "${value}"
79  }  }
80    
81  # control_graphic_resolution $serial  # control_graphic_resolution $serial

Legend:
Removed from v.2510  
changed lines
  Added in v.2561