/[classpath]/classpath/examples/gnu/classpath/examples/jawt/DemoJAWT.c
ViewVC logotype

Diff of /classpath/examples/gnu/classpath/examples/jawt/DemoJAWT.c

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

revision 1.1 by fitzsim, Fri Aug 12 05:37:26 2005 UTC revision 1.2 by mark, Mon Sep 5 08:31:03 2005 UTC
# Line 23  Free Software Foundation, Inc., 51 Frank Line 23  Free Software Foundation, Inc., 51 Frank
23  #include <string.h>  #include <string.h>
24    
25  JNIEXPORT void JNICALL  JNIEXPORT void JNICALL
26  Java_DemoJAWT_paint (JNIEnv* env, jobject canvas, jobject graphics)  Java_gnu_classpath_examples_jawt_DemoJAWT_paintIt (JNIEnv* env,
27                                                       jobject canvas,
28                                                       jobject graphics,
29                                                       jboolean on)
30  {  {
31    JAWT awt;    JAWT awt;
32    JAWT_DrawingSurface* surface;    JAWT_DrawingSurface* surface;
# Line 124  Java_DemoJAWT_paint (JNIEnv* env, jobjec Line 127  Java_DemoJAWT_paint (JNIEnv* env, jobjec
127    
128    for (c = 5; c >= 0; c--)    for (c = 5; c >= 0; c--)
129      {      {
130        if (c % 2)        if (c % 2 == on)
131          XSetForeground (display, gc, yellow.pixel);          XSetForeground (display, gc, yellow.pixel);
132        else        else
133          XSetForeground (display, gc, orange.pixel);          XSetForeground (display, gc, orange.pixel);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26