Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. void DrawScaledBar(dword x,y,w,h,col) {
  2.         DrawBar(
  3.                 x*SCALE,
  4.                 y*SCALE,
  5.                 w*SCALE,
  6.                 h*SCALE,
  7.                 col            
  8.         );
  9. }
  10. void DrawScaledImage(dword image_pointer,x,y,w,h,offx,offy) {
  11.         img_draw stdcall (
  12.                 image_pointer,
  13.                 x*SCALE,
  14.                 y*SCALE,
  15.                 w*SCALE,
  16.                 h*SCALE,
  17.                 offx*SCALE,
  18.                 offy*SCALE
  19.         );     
  20. }
  21. void WriteScaledText(dword x,y,font,color,text) {
  22.         WriteText(
  23.                 x*SCALE,
  24.                 y*SCALE,
  25.                 font + SCALE,
  26.                 color,
  27.                 text
  28.         );
  29. }