# Windows Sketch Screen Size Problem

Hello everyone, I got this problem. When I’m working on Mac, I can see my design in sketch screen as exactly as I coded. But then when I try to open in my Windows laptop, I see the screen size different. In my last draft I mentioned below, I can see the whole screen on Mac but on my computer it only appears half above my screen size so i can’t even see the close button so I can’t drag and can’t see what I did as a whole. How can I solve this problem?

``````/**
* Extrusion.
*
* Converts a flat image into spatial data points and rotates the points
* around the center.
*/

PImage a;
boolean onetime = true;
int[][] aPixels;
int[][] values;
float angle;

void setup() {
size(2000, 2000, P3D);

aPixels = new int[width][height];
values = new int[width][height];
noFill();

// Load the image into a new array
// Extract the values and store in an array
for (int i = 0; i < a.height; i++) {
for (int j = 0; j < a.width; j++) {
aPixels[j][i] = a.pixels[i*a.width + j];
values[j][i] = int(blue(aPixels[j][i]));
}
}
}

void draw() {
background(0);
translate(width/2, height/2, -height/2);
scale(2.0);

// Update and constrain the angle
angle += 0.005;
rotateY(angle);

// Display the image mass
for (int i = 0; i < a.height; i += 4) {
for (int j = 0; j < a.width; j += 4) {
stroke(values[j][i], 255);
line(j-a.width/2, i-a.height/2, -values[j][i], j-a.width/2, i-a.height/2, -values[j][i]-10);
}
}
}
``````

Hi

Try to use less value than 2000

``````size(2000, 2000, P3D);
``````

Try using the setLocation()
It will locate the window (surface) at what ever x,y position you wishon your screen.

1 Like

Hi @jafal ,

I tried this but didn’t work unfortuanetly.

Hi @JSGauthier ,
This worked, thank you so much.

2 Likes

I’m glad this suggestion worked for you. Can you set my response as a solution so others can help newer posts?

3 Likes