~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to macros/scicos/do_Displaymode.sci

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function newpixmap=do_Displaymode(pixmap)
 
2
// Copyright INRIA
 
3
  [ok,newpixmap]=getvalue('Set Display mode (Backing store)',[
 
4
      'mode (0 or 1)'],list('vec',1),string(%scicos_display_mode))
 
5
  if ~ok then 
 
6
    newpixmap=pixmap
 
7
  else
 
8
    if newpixmap<>0 then
 
9
      newpixmap=1
 
10
    end
 
11
  end
 
12
  xset('pixmap',newpixmap)
 
13
endfunction